Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7555534rwl; Fri, 30 Dec 2022 10:08:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXvVdD5CMdX7gJbdyFqxkSeBViq8UupPw/z6Ir6nRfpcbkO3dvf3mporlU/MOYbKkRjEH4e6 X-Received: by 2002:a17:90a:8c01:b0:219:4b5:1775 with SMTP id a1-20020a17090a8c0100b0021904b51775mr48997278pjo.39.1672423719148; Fri, 30 Dec 2022 10:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672423719; cv=none; d=google.com; s=arc-20160816; b=SfH53rjwg19n2C20YwFwSI72IrH+yRoJfVAFwgwEoiToAmZZIXblNCf0wNA5sywoi+ qH8mIfnqZpvnt/F1ipoSR6UV4pmtboKOQEZFL3dhges1MFmOz2NJ/qTOKbSwarIiXDt0 XZPa2N+/gdvVXzaiqrZYx4phrYnvQgLIB169eSx2VEgAq6qDP7wwFxY0MH510es7JBDW 4qlJjWcvJqiTCZUypHHqSebRl+K8a6dLWSOXBs70ScAijCWiDlSL14xJJ4m+THgVE2Wh YXZp2i1KUksZ+3q5Fd9j4DFxv4/RdcLxdRmvgAtXF9XzCDprVp2mBIv/KL+j0kqEaCXt iCKw== 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=owvYwEn7S/5FDQeiC0iDlg4bP/bANVVwDFI945nRit0=; b=Ls6LB1ZbCbIMS53NMQ26MAItV897hQ5oZmdmRIzO+99ZO51aEV22iKqZjF1RgNNieb 9B6+JXW5bOUrtBu5p+A30DTqHPhtePiYU8p2nkk68UHU0D3vv+Av+jHVp02KiE/SHe0S 3xFeQTfLp505Gf0gvNUjIYe/fOMv8VqyGWZkj0DJYb/0YDVzar+b12JlNA9qCiVZ5S4d 4dvTFjggOMXlfvFWcvgKQze6KYFpXjCHABZqVcSciYvEaZ9qUjPAGS7csFLkIKPLhIkb BZkqDz2kn5PjX/0zkafDydmkW+E7Rff4dwdABJLxXlIBk8lRDIUHD3fKVS2Q9nxJwG3C EY3w== 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 v15-20020a17090a898f00b00223facc5d2csi21509492pjn.162.2022.12.30.10.08.31; Fri, 30 Dec 2022 10:08:39 -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 S235430AbiL3SHQ (ORCPT + 63 others); Fri, 30 Dec 2022 13:07:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235405AbiL3SHN (ORCPT ); Fri, 30 Dec 2022 13:07:13 -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 31C426248 for ; Fri, 30 Dec 2022 10:07:12 -0800 (PST) Received: from dslb-188-097-208-179.188.097.pools.vodafone-ip.de ([188.97.208.179] 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 1pBJmc-0004rR-KE; Fri, 30 Dec 2022 19:07:06 +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 01/20] staging: r8188eu: make xmitframe_swencrypt a void function Date: Fri, 30 Dec 2022 19:06:27 +0100 Message-Id: <20221230180646.91008-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221230180646.91008-1-martin@kaiser.cx> References: <20221230180646.91008-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 xmitframe_swencrypt always returns _SUCCESS and the caller does not check the return value. We can remove the return value and make xmitframe_swencrypt a void function. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_xmit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_xmit.c b/drivers/staging/r8188eu/core/rtw_xmit.c index 34494f08c0cd..4cd457cfb791 100644 --- a/drivers/staging/r8188eu/core/rtw_xmit.c +++ b/drivers/staging/r8188eu/core/rtw_xmit.c @@ -761,7 +761,7 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr return _SUCCESS; } -static s32 xmitframe_swencrypt(struct adapter *padapter, struct xmit_frame *pxmitframe) +static void xmitframe_swencrypt(struct adapter *padapter, struct xmit_frame *pxmitframe) { struct pkt_attrib *pattrib = &pxmitframe->attrib; @@ -781,8 +781,6 @@ static s32 xmitframe_swencrypt(struct adapter *padapter, struct xmit_frame *pxmi break; } } - - return _SUCCESS; } s32 rtw_make_wlanhdr(struct adapter *padapter, u8 *hdr, struct pkt_attrib *pattrib) -- 2.30.2