Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6821971rwl; Mon, 9 Jan 2023 13:35:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXtod/vK5bKj0tBGVy5CntZt5bpF8o5z7nRnlz+ZKxUC5DF77qvQ/0pxqeMDJOawO4IT6Khp X-Received: by 2002:aa7:c1d9:0:b0:499:1ed2:645d with SMTP id d25-20020aa7c1d9000000b004991ed2645dmr5652556edp.17.1673300128160; Mon, 09 Jan 2023 13:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673300128; cv=none; d=google.com; s=arc-20160816; b=MzNmDIH5HsaWdGgZAqenGqNVygy0+ci2yceOFoxxdtXUfC86JnspfWyxy/GVGjE1JB 4C/iym/h5tXJKY7c0bDrdvpremLRLuugwXKoRPhINb2Tu8XRhXOfY6yTZ1+NWBmGEEUD A9Jbo/zBe0guEWoVLaT2ZEs+HEY1EbnZF6yPMNJ6hjqvFqKWSKdCNgVXC7P3oi5EZ3Kn GPIqXY+RbiPWiTeTpYLlKtEcj0e5cBjVP2JUXJNolru56llSG4Up638mxYZ+LUvcXSIq 48gYv69VjeJ8U4i3En/WxN8Jpvnb1U8eje+T1k/o2KJ61UL25WK9OaMTUmry70w/9kFC 2V3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6oOP7ilBexgfwk3Jyb0OkYMvM8WjBu93eowsRHI+rxc=; b=zhpU79zQ5OcZLYUO63xe62f4EqSoUich48AjGyXlV4CuFmW7imv3jGSRoJSChr1pHl GLH/BrXbSF7W+7Qz6m/1scp5Y6/nvY2l0nK6WSMmyNfhcNyDKHa0c6w4jBootf1z2yAm Ux/tnwOBz3tnVSzsyZJi1fXyZ5OV0XR2NnMz9DNHzJVoWUTLuwCdpVVArwurdMaGvL5d f2FHlnH9YsxGQEZvo6DeOjUzdIkfKIyhdlj1Q6jzrUn7uwHfFGOqGZ1iCqHBNHq8Un3A v9BU8qVDbXi0Rksa4FTp+PCIw7mXFPKO+C4kuE0tMka7oOOlxj29y3eC6UahIZr3D4+a Lh+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y90-20020a50bb63000000b00482b7282bdfsi8472666ede.89.2023.01.09.13.35.15; Mon, 09 Jan 2023 13:35:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237726AbjAIVaN (ORCPT + 53 others); Mon, 9 Jan 2023 16:30:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237985AbjAIV3T (ORCPT ); Mon, 9 Jan 2023 16:29:19 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D8ECDF3A for ; Mon, 9 Jan 2023 13:29:12 -0800 (PST) Received: from dslb-188-096-147-178.188.096.pools.vodafone-ip.de ([188.96.147.178] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1pEzhb-0007iD-SY; Mon, 09 Jan 2023 22:29:07 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v2 05/12] staging: r8188eu: replace switch with if Date: Mon, 9 Jan 2023 22:28:45 +0100 Message-Id: <20230109212852.75612-6-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230109212852.75612-1-martin@kaiser.cx> References: <20230108185738.597105-1-martin@kaiser.cx> <20230109212852.75612-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The switch statement in usb_write_port_complete has only one single case. Replace it with an if statement. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/os_dep/usb_ops_linux.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/r8188eu/os_dep/usb_ops_linux.c b/drivers/staging/r8188eu/os_dep/usb_ops_linux.c index 6fe5a4230291..257bcf496012 100644 --- a/drivers/staging/r8188eu/os_dep/usb_ops_linux.c +++ b/drivers/staging/r8188eu/os_dep/usb_ops_linux.c @@ -41,13 +41,8 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs) struct adapter *padapter = pxmitbuf->padapter; struct xmit_priv *pxmitpriv = &padapter->xmitpriv; - switch (pxmitbuf->flags) { - case HIGH_QUEUE_INX: + if (pxmitbuf->flags == HIGH_QUEUE_INX) rtw_chk_hi_queue_cmd(padapter); - break; - default: - break; - } if (padapter->bSurpriseRemoved || padapter->bDriverStopped || padapter->bWritePortCancel) -- 2.30.2