From patchwork Tue May 5 12:37:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 215723 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63BB8C47247 for ; Tue, 5 May 2020 12:39:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37CD720735 for ; Tue, 5 May 2020 12:39:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="Bc+zhF+t" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729191AbgEEMjD (ORCPT ); Tue, 5 May 2020 08:39:03 -0400 Received: from mail-eopbgr770049.outbound.protection.outlook.com ([40.107.77.49]:46720 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729164AbgEEMi5 (ORCPT ); Tue, 5 May 2020 08:38:57 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZqQ1K3LbL/e2LX/uZ0zEpArzeIV93EsIBRUCwnN3RQGPJAGrYscryb/BpxNflDHhl1WyXcMcaiQDycgIrJKvfYzE6On2Ab1LlpmbQuVXQgufUts8W1HxYcz8aG88M0Gy0djMnpxYWMrCLG+sQmdOKtYkQmmC7oe2oPEO2boLISBfjwXZFdS0CoEi077qe2igOL370rcMoMmlV2o2TnZWDbj63+VVCmTCLLpnP1GKHb23Ky0oTII1MjEqTopQi6RFby5GwLDajaXf+/92fP/CXNLfxxGhIcH91A/B5/PG2HYyWd6OjhZ6dQSxkoQcCKeHXFDd9MrTJ5TVBsbSX1Aw5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q88NH/Z+Ghe/bbf7NcKlW2paRAvZh4tzX89eXQINv3k=; b=SB+645bXLcVzbJiOKG66csUigsyuf81YNo1Cs6+MO11lPaPG1Ryhq1Crw5huwsi8q78QY6aLNh1KXBC5d5GrspZWCKW9sG5pFA+4jMODQYIXEKA6cWFtv386EsIfAnOutadLs676kWLmhsvBDxke3yALSpqSQstc8fE7zrZX+Fnv3c/MTkKCpZ8VwT37VO+nvUrUAkhVobOshiHaC8ap1Z5d38wsRGm1eAw1s4YPL8Q8a5JIwnKFsv3eLBM9kXINxjAaNIGrjs0mcmyHz8SJG5S9qE80xLssHu59kJ1iIt7p8w4o1ysi4izbCUrUdlu0dj5I66q97QhN8Os96UIB4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q88NH/Z+Ghe/bbf7NcKlW2paRAvZh4tzX89eXQINv3k=; b=Bc+zhF+tXyZ7Kknr21PHDyOu1b7RGyEyu3i44uaWqCusefje1KpuZHwKJ3KzPz9fZf4wDe7zDVtY4CyaajG4P8wfaIf0CAo7PazJzeF6c6/cqZN+PSlPxRF+6lpvTi1Ltsk36SkISe5+E1lNxM8dEYrHUo0QLHLY6fLty5CFMaA= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) by MWHPR11MB2046.namprd11.prod.outlook.com (2603:10b6:300:28::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Tue, 5 May 2020 12:38:42 +0000 Received: from MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe]) by MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe%10]) with mapi id 15.20.2958.030; Tue, 5 May 2020 12:38:42 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 14/15] staging: wfx: remove spaces after cast operator Date: Tue, 5 May 2020 14:37:56 +0200 Message-Id: <20200505123757.39506-15-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200505123757.39506-1-Jerome.Pouiller@silabs.com> References: <20200505123757.39506-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR3P189CA0022.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:52::27) To MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.home (2a01:e35:2435:66a0:1265:30ff:fefd:6e7f) by PR3P189CA0022.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:52::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20 via Frontend Transport; Tue, 5 May 2020 12:38:40 +0000 X-Mailer: git-send-email 2.26.1 X-Originating-IP: [2a01:e35:2435:66a0:1265:30ff:fefd:6e7f] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d97d77ea-cee9-4446-26c6-08d7f0f13e75 X-MS-TrafficTypeDiagnostic: MWHPR11MB2046: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:82; X-Forefront-PRVS: 0394259C80 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zj73ms6HDqQftp52Si40A33exkJetqINTYDMOal0gRQCkep+dPOFjFGwGxfIS3AMnwlsFoSy4hVRcVmWKqpyr8CZe/9MfzCm1e/0qXa40oap5t6IuIiStY82+4BhjAC3OBeEpo78Oq1t+Uq+VEfjpaGXvFheppDw1Nlo7WKAHLacsQoM1creXeiR7MZtJZTVqS+LCVlk4dy0lk7e6Cx74XMYaoU/sSbWjh3/gaLibhl2USNi85GXaTWoqBcPwiF6PkygRVGdj8+W6qh4+3yph/R76tmkGcN6+b7JXzqGBU87Xoh7O9MIKNGm6YZ8VKOC6ChhKO97cYHWt3Nv8IFJvSIXLpnrWexEr7If3kF4xgnzPdLmnW+DYY4d//nSLZdeZd5cH44MMaZHY+C0hKsZ+Xzj+HvChtmg9yx9YmI+nlisfH7CLTPHYTqHQlZNO26H9RhpHBf42ekGhSvMHmqiUL8AdkyATtbm1r2xrQucdAg+l26WrajslWUh1F1Q/Ohznf3iPgOMQIBqG9l9OocfAg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1775.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(396003)(366004)(346002)(39850400004)(136003)(376002)(33430700001)(2906002)(36756003)(52116002)(86362001)(5660300002)(6486002)(1076003)(8676002)(66574012)(8936002)(6666004)(107886003)(2616005)(66476007)(66946007)(16526019)(186003)(66556008)(6512007)(8886007)(478600001)(4326008)(6506007)(33440700001)(54906003)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: LK8YBSCFoy8TtPSPsINb7kkeWg12v+iN1/5TRhZVLcQ+TFuPMenM0dUWdRod9JCkrpCzT6rsCME/XbqNgkEhNzKJy4on8c5VLW9HNrQBxTUnDRpD/44HTlk9lEyB3PLE37U+459eod8BrEjlc8wUnrFr4jET2VHHf5kcJZxtr3LnUP1tQUwx2rBHUZH5wxLXe5H5w2ymGAVaaVXueCk8HEeiPv2pI48wUCp+jUwoJaf3VOsS2VEJks+gs4jHxfvzdrJDs0P7yPOueLMRqlJWbe80mncU7RV+Mx2o+z57A/YnOnOStDd9YPo57ewCt/09kBrZXBFtsgTYFhynhKH8g4+zhnNYc8dvb0z6Q05VQQZ82GmxsZ12fb2zurSspS/CJ9BHa2nvXyAb88Xehqh1jX3aQhgM4WusTVHNXwfazqfmsItkWPGHbuZQBWZTDAv1DsPIJELdsAfrAcWNzKATEP6FkmY3yuazuyadvhqMRiU6FLbny2R4yqtX+3V4UGTTjT7RyzphC43nS1WuiRyeEFwyEG2HD9+ki0ASf3vXuikQqcN8KVqhUc6D9LniNedLA8WRbqNqW/aLR4CPkyhxc0H3hx7lMi+FUewPwXcXv2fRjTH7PqY2HsaJ9o83Wc3PwBRKlWsWrw0Z+Oh3ZLMeC1x4fYoPXPQtBOjEzFbLhXt2u2hHDqWxyQbkz7ncniIYFWyZI+zjS+GC8IciFX34aXmfi6WPr/c8qs7Yctu54wtFY/6eJO/cAgvvNrg3vYMCreGakCcrXcq9T7bVvfzJLaq8erkW6/GmGiJCpK1VCggZFAaMQkJsNxosb55Jd7bU4+2joXInzjDE01B9tvHJB48u8NsGVAuhXg7ESwo2Hzs= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d97d77ea-cee9-4446-26c6-08d7f0f13e75 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2020 12:38:42.6142 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EcQdWbMM3HseddVnwPA4JQdtI6sGZ+EVliz6RhwIgmNE8iGMzKCerDDuXkDqGzl6JcS+nVD+405/MRaBHlin8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB2046 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The kernel coding style expects no space after cast operator. This patch make the wfx driver compliant with this rule. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 2 +- drivers/staging/wfx/hif_tx.c | 4 ++-- drivers/staging/wfx/hwio.c | 4 ++-- drivers/staging/wfx/key.c | 2 +- drivers/staging/wfx/main.c | 2 +- drivers/staging/wfx/sta.c | 23 +++++++++++------------ 6 files changed, 18 insertions(+), 19 deletions(-) diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index b786714a8755..ac4ec4f30496 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx/hif_rx.c @@ -263,7 +263,7 @@ static int hif_generic_indication(struct wfx_dev *wdev, return 0; case HIF_GENERIC_INDICATION_TYPE_STRING: dev_info(wdev->dev, "firmware says: %s\n", - (char *) body->indication_data.raw_data); + (char *)body->indication_data.raw_data); return 0; case HIF_GENERIC_INDICATION_TYPE_RX_STATS: mutex_lock(&wdev->rx_stats_lock); diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index 96f13d9c8c98..b083fcace303 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx/hif_tx.c @@ -106,7 +106,7 @@ int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, if (ret && (cmd == HIF_REQ_ID_READ_MIB || cmd == HIF_REQ_ID_WRITE_MIB)) { - mib_name = get_mib_name(((u16 *) request)[2]); + mib_name = get_mib_name(((u16 *)request)[2]); mib_sep = "/"; } if (ret < 0) @@ -470,7 +470,7 @@ int hif_map_link(struct wfx_vif *wvif, u8 *mac_addr, int flags, int sta_id) if (mac_addr) ether_addr_copy(body->mac_addr, mac_addr); - body->map_link_flags = *(struct hif_map_link_flags *) &flags; + body->map_link_flags = *(struct hif_map_link_flags *)&flags; body->peer_sta_id = sta_id; wfx_fill_header(hif, wvif->id, HIF_REQ_ID_MAP_LINK, sizeof(*body)); ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); diff --git a/drivers/staging/wfx/hwio.c b/drivers/staging/wfx/hwio.c index 051d4b233b47..d878cb3e84fc 100644 --- a/drivers/staging/wfx/hwio.c +++ b/drivers/staging/wfx/hwio.c @@ -233,7 +233,7 @@ int wfx_data_read(struct wfx_dev *wdev, void *buf, size_t len) { int ret; - WARN((long) buf & 3, "%s: unaligned buffer", __func__); + WARN((long)buf & 3, "%s: unaligned buffer", __func__); wdev->hwbus_ops->lock(wdev->hwbus_priv); ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, WFX_REG_IN_OUT_QUEUE, buf, len); @@ -249,7 +249,7 @@ int wfx_data_write(struct wfx_dev *wdev, const void *buf, size_t len) { int ret; - WARN((long) buf & 3, "%s: unaligned buffer", __func__); + WARN((long)buf & 3, "%s: unaligned buffer", __func__); wdev->hwbus_ops->lock(wdev->hwbus_priv); ret = wdev->hwbus_ops->copy_to_io(wdev->hwbus_priv, WFX_REG_IN_OUT_QUEUE, buf, len); diff --git a/drivers/staging/wfx/key.c b/drivers/staging/wfx/key.c index ceb57cbdfefd..5ee2ffc5f935 100644 --- a/drivers/staging/wfx/key.c +++ b/drivers/staging/wfx/key.c @@ -228,7 +228,7 @@ int wfx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, struct ieee80211_key_conf *key) { int ret = -EOPNOTSUPP; - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; mutex_lock(&wvif->wdev->conf_mutex); if (cmd == SET_KEY) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index de41f1671433..18c96b82c66e 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -390,7 +390,7 @@ int wfx_probe(struct wfx_dev *wdev) wdev->hw_caps.firmware_build, wdev->hw_caps.firmware_label, wdev->hw_caps.api_version_major, wdev->hw_caps.api_version_minor, - wdev->keyset, *((u32 *) &wdev->hw_caps.capabilities)); + wdev->keyset, *((u32 *)&wdev->hw_caps.capabilities)); snprintf(wdev->hw->wiphy->fw_version, sizeof(wdev->hw->wiphy->fw_version), "%d.%d.%d", diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 999e0f0e19af..1a876a0faaf5 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -251,7 +251,7 @@ int wfx_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, u16 queue, const struct ieee80211_tx_queue_params *params) { struct wfx_dev *wdev = hw->priv; - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; int old_uapsd = wvif->uapsd_mask; WARN_ON(queue >= hw->queues); @@ -345,8 +345,7 @@ static void wfx_set_mfp(struct wfx_vif *wvif, rcu_read_lock(); if (bss) - ptr = (const u16 *) ieee80211_bss_get_ie(bss, - WLAN_EID_RSN); + ptr = (const u16 *)ieee80211_bss_get_ie(bss, WLAN_EID_RSN); if (ptr) { ptr += pairwise_cipher_suite_count_offset; @@ -411,8 +410,8 @@ static void wfx_do_join(struct wfx_vif *wvif) int wfx_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta) { - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; - struct wfx_sta_priv *sta_priv = (struct wfx_sta_priv *) &sta->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; + struct wfx_sta_priv *sta_priv = (struct wfx_sta_priv *)&sta->drv_priv; spin_lock_init(&sta_priv->lock); sta_priv->vif_id = wvif->id; @@ -432,8 +431,8 @@ int wfx_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif, int wfx_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta) { - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; - struct wfx_sta_priv *sta_priv = (struct wfx_sta_priv *) &sta->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; + struct wfx_sta_priv *sta_priv = (struct wfx_sta_priv *)&sta->drv_priv; int i; for (i = 0; i < ARRAY_SIZE(sta_priv->buffered); i++) @@ -534,7 +533,7 @@ void wfx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *info, u32 changed) { struct wfx_dev *wdev = hw->priv; - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; int i; mutex_lock(&wdev->conf_mutex); @@ -703,7 +702,7 @@ void wfx_change_chanctx(struct ieee80211_hw *hw, int wfx_assign_vif_chanctx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_chanctx_conf *conf) { - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; struct ieee80211_channel *ch = conf->def.chan; WARN(wvif->channel, "channel overwrite"); @@ -716,7 +715,7 @@ void wfx_unassign_vif_chanctx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_chanctx_conf *conf) { - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; struct ieee80211_channel *ch = conf->def.chan; WARN(wvif->channel != ch, "channel mismatch"); @@ -732,7 +731,7 @@ int wfx_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) { int i, ret = 0; struct wfx_dev *wdev = hw->priv; - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER | IEEE80211_VIF_SUPPORTS_UAPSD | @@ -799,7 +798,7 @@ int wfx_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) void wfx_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) { struct wfx_dev *wdev = hw->priv; - struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; + struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; wait_for_completion_timeout(&wvif->set_pm_mode_complete, msecs_to_jiffies(300));