From patchwork Mon Oct 17 20:34:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 13009589 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D30D1C43217 for ; Mon, 17 Oct 2022 20:37:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231478AbiJQUhs (ORCPT ); Mon, 17 Oct 2022 16:37:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbiJQUhb (ORCPT ); Mon, 17 Oct 2022 16:37:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ADDF80BD3; Mon, 17 Oct 2022 13:35:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 855B2B81AD3; Mon, 17 Oct 2022 20:34:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA7ABC433C1; Mon, 17 Oct 2022 20:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666038898; bh=pr4++4yUHbZlDDwyrw3c+RvKoKW1WA0ngYLG9iMMutk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MrHVh88PjdMGfdAOf5Bim7C4ijNzrtPm7Ai19A9NZ+q3r08LrdzKnGZIHGSWUZ230 JsgVFUnWvvdkLZ2hgnlSu4x4Vajj1lL9ePVl4HW5uXncvlIWwrXZRsSUUn1uLoA5qo /4wfQsL6kFxU1uTRKUxiHVuYgJsH4w+6r5EQ9poI7hqrnEyIPVjjKRXt+jwH1IxgKu vYKtsG3xBrG1jbUGqEynnfgCQVzS9hCVB6PuaK5Q6u4ngJJTagu93SGDSPs++s2TQp TA99IJzxIqAStR8Wd+x+3kUb+vgRShV/+7BvZ5v5OMKIzUJDR5iFg2Ouajlhqzhx1W Bivv/zPi927Pg== Date: Mon, 17 Oct 2022 15:34:48 -0500 From: "Gustavo A. R. Silva" To: Stanislav Yakovlev , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook , "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH 3/6][next] ipw2x00: Remove unnecessary cast to iw_handler in ipw_wx_handlers Message-ID: <421a4b4673da8fb610850f674d0994ad46bc1ed6.1666038048.git.gustavoars@kernel.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org Previous patches have removed the rest of the casts to iw_handler in ipw_wx_handlers array definition, and with that multiple -Wcast-function-type-strict warnings have been fixed. Remove the one cast to iw_handler remaining, which was not removed in previous patches because there was no -Wcast-function-type-strict warning associated with it. Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 5b483de18c81..3158f91b18d5 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -9870,7 +9870,7 @@ static int ipw_wx_sw_reset(struct net_device *dev, /* Rebase the WE IOCTLs to zero for the handler array */ static iw_handler ipw_wx_handlers[] = { - IW_HANDLER(SIOCGIWNAME, (iw_handler)cfg80211_wext_giwname), + IW_HANDLER(SIOCGIWNAME, cfg80211_wext_giwname), IW_HANDLER(SIOCSIWFREQ, ipw_wx_set_freq), IW_HANDLER(SIOCGIWFREQ, ipw_wx_get_freq), IW_HANDLER(SIOCSIWMODE, ipw_wx_set_mode),