Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5253629rwl; Sun, 8 Jan 2023 11:21:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXv9G7eVM2iQ76ka6uuSRAe8PNnFFM12LsbPa/H7tNFz5GyPJzOLC0pdLI6vMTn6JTKXuTUn X-Received: by 2002:aa7:cf94:0:b0:47b:16f5:61dc with SMTP id z20-20020aa7cf94000000b0047b16f561dcmr54523172edx.37.1673205713144; Sun, 08 Jan 2023 11:21:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673205713; cv=none; d=google.com; s=arc-20160816; b=L1vugvfbEHza7n5pVdeDSYfaedMp7GhJAk21JFVb67Dq963PwRX6F5BBLP2bxvEAhk DfCakhPgi+6EwjG5LzFTMCx7+CfGflFAqoVTzZqFcNi1OUB1yl+9t63nRvavi6bnOHfw JsiUex6Cm2OpTbjDtH+5SJEmNrYRCCAFIQ19Wg3B0npJHLvp9AXoq3Bc3hMZYeQGyr+6 k5eMxyMsoWkBORLmTE7yXCQWxV5NvKEmQTBcqw2lgBYL5QyyuHepQAhqAztLAMx6j1v3 HwcRU3NWggTFfxBGi8rIgBCuOEgLlMNGN/IlMZQOdu29usNQrMi5WQ56fpjIeXYi/qYr ED1A== 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=zHZ2kUV5hKmdktm6bM+zPxAEq4ks+zZB03GmY0dJA+CsFEpUNZvaFwFeb59pv5kPZb ZvFNA0+nhn8d/yVcQdMyCVdswqSV1TrOuPCRiHn2cVYqqNSRcHwcx2Zr/6hDtZm21jPK 4vG2aYnY8YF6nHlGjC6S/2QSH05XyPfHi+lU8IOq+FxfFKy8BwlVTadTESyVYkkR4ZoF XdTqTw+UKLMJrAUypcAY8H8mzYA4sP6DC+MrVU7jhxd1d+whQoiqA+VyVchjW8A26F2N LcQwCxTLQkQJebR3TXJFD1YRrXHbo+BNAPVTOmEF4wRv65ybFJIjW26RrprxTapNy8Dt YG1g== 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 f26-20020a056402161a00b0046965a49126si7068556edv.528.2023.01.08.11.21.41; Sun, 08 Jan 2023 11:21:53 -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 S236373AbjAHS6P (ORCPT + 51 others); Sun, 8 Jan 2023 13:58:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235893AbjAHS6A (ORCPT ); Sun, 8 Jan 2023 13:58:00 -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 D7DB6E02E for ; Sun, 8 Jan 2023 10:57:59 -0800 (PST) Received: from dslb-188-096-147-053.188.096.pools.vodafone-ip.de ([188.96.147.53] 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 1pEari-0003b8-4b; Sun, 08 Jan 2023 19:57:54 +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 05/13] staging: r8188eu: replace switch with if Date: Sun, 8 Jan 2023 19:57:30 +0100 Message-Id: <20230108185738.597105-6-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230108185738.597105-1-martin@kaiser.cx> References: <20230108185738.597105-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