From patchwork Fri Apr 29 11:16:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasan Raju X-Patchwork-Id: 12831838 X-Patchwork-Delegate: kuba@kernel.org 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 A79C4C433FE for ; Fri, 29 Apr 2022 11:17:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358219AbiD2LUQ (ORCPT ); Fri, 29 Apr 2022 07:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355910AbiD2LUO (ORCPT ); Fri, 29 Apr 2022 07:20:14 -0400 Received: from GBR01-LO2-obe.outbound.protection.outlook.com (mail-lo2gbr01on2116.outbound.protection.outlook.com [40.107.10.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A5FC84EF7; Fri, 29 Apr 2022 04:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=davsG5IlG8HmRKK6KFDkiaAOl3j5uNxib1/g4qdAP9gTQUEyjs7Xo4sJCuu0zDZop8jF0kVAiQiJOOHrg/rx2cjzlJEgUZjx19OQ2gSxDtqvGcGpBVkSlhzUGAmwqEBJd9ZgSNlxto7GotT3u+HuzPcXdb4G2a7Zx8NV418bUfX20Ess49xOa4QzhY4bpPlpJ+DVJb2mItUby3ZDc7m0e5YfvdoSlI9SXk5d2Bdc/DzwGac42wU/AMglpa9WHQXoayUzCO38SfDmZ2OpjSMTEIZmEGEweNiSO8LGi407ZkAvfC683g4bEW46el2FPuqX6d2QK0nj4fYkKzRBsUbHnw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5IBDE/Z+SU3/kyLzDqsYbGQrnv0m/JfVUUpZdxtPWhg=; b=baREddat82nTouSsR6wNcN4hi2jTuTczsqWoMIw4qtSVFGGMHim+QLUy+r9LZ1uMOureUhgRee2RwyVkl0jdiJ827rISb9kOncDuGpv//HpZdv5ZZRua20QaOr9C+sjt3F7jQasZer4T2ck+knTCcwK07wx4fM5Y/kea0WUxR57wBUvLmYU8KP+5S8m3kSle25NB4GRdPthJzGc3z8XPpqCAaR/xWm1lxyshBOKt1i3mweE7kKshGOtvVf7YW6Zsnljk6D9M26DRwHczzUDBJZ7pUpDBNhPHET7cl/rwsDA7r1ifWSDq0m+U+6jO4pc3t7wWdNZHrl2gXSzRsrUdiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=purelifi.com; dmarc=pass action=none header.from=purelifi.com; dkim=pass header.d=purelifi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purelifi.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5IBDE/Z+SU3/kyLzDqsYbGQrnv0m/JfVUUpZdxtPWhg=; b=cz5HOES7zQuHRG24eSTpdjCgp7TbN4HP8StflQhNzv9vH48nmW+fqtB2cQoi0htplu1wpo8BmjfJY1TVQzOqZUDzp8UBSclZGh6mge3QgmQXVc3FvI6hkB3gZC8d1/DH1OVWGmHD/XNUK3KR9YJp1Fdd7E62xXDfypOSqZhS+Dg= Received: from CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:bb::9) by LO6P265MB6205.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2b6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Fri, 29 Apr 2022 11:16:54 +0000 Received: from CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM ([fe80::9d97:7966:481:5c10]) by CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM ([fe80::9d97:7966:481:5c10%7]) with mapi id 15.20.5186.026; Fri, 29 Apr 2022 11:16:54 +0000 From: Srinivasan Raju CC: Kalle Valo , "David S. Miller" , "edumazet@google.com" , Jakub Kicinski , "pabeni@redhat.com" , "open list:NETWORKING DRIVERS (WIRELESS)" , "open list:NETWORKING DRIVERS" , open list Subject: [PATCH] [v3] plfxlc: fix le16_to_cpu warning for beacon_interval Thread-Topic: [PATCH] [v3] plfxlc: fix le16_to_cpu warning for beacon_interval Thread-Index: AQHYW7nEp2tiBE48nEyuZGXcJUt1PQ== Date: Fri, 29 Apr 2022 11:16:54 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=purelifi.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 14aca679-16ce-4cf3-712c-08da29d1c45e x-ms-traffictypediagnostic: LO6P265MB6205:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3ZV03G7TUW21jBVO+AwS61ATomSYCoYGABJcLED5EVZTstjeGPH1IBn7IeZcXCMU+Y7ZwvDmQpGnXoF6ek+sPn7AYzysoZuCWLH0HY88+eANUXXej+cGq2DCGZYVb/RwMcMU7p1s7MVm+VyZFFasyKgX/SWTWoVLkC312xWCEjF1J/wPz/vfByq5kROM2u8OU/NpFtg709Vgebi0Yb/asY4GoUmAAfsdQevZNhv3hGrV5hardqSnVYrbum8VHoTC7aeeEIAOzFgx6JOLz2HKiw7acIgm4XSdLPrfwmCUn2uLx4N7VqAVU3LLwtvsd2a2KX6qrWmLEc8KImC4LQQvbk/RQUAf7xYVr76psoqaIZJhN/Xrt0l+lCEzooG9cpHp0RibNM+Nt/XipcG5szzqj+L6BNZjXksKOYJ1C0Z9bDigph4Ym6ttxvxfSSjA8RbGoJsjvoB0UzhdVBCG+MiAbUYbHqXnP/Csq3fXtCTMlC6QKPTczhGDk5mg3kfZqwsxm2u+Y1s47u4v1w/poXWZjsc20kH2URDFtPXB7c+9MOdZFqqJWkoVmyQu/HX14MTXK6JtPS41H1c0+0wtLwQMCoQwB5L88qumbQYXQytBiBnpw7sm8KrRK0eTrFZsm7Ycy7oCq/qU2dcLgkLBX+KPfO58IU9QGNJkjP4RKwz4JnTzzwKxMRPMKZ65dcm0nAJQ5cyVgSy+LA9t/kt7EoGixA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230001)(4636009)(346002)(39830400003)(136003)(366004)(376002)(396003)(8676002)(66446008)(91956017)(66476007)(52536014)(4326008)(8936002)(109986005)(33656002)(64756008)(76116006)(66946007)(66556008)(508600001)(83380400001)(122000001)(6506007)(7696005)(86362001)(2906002)(9686003)(5660300002)(26005)(186003)(71200400001)(38100700002)(54906003)(316002)(55016003)(38070700005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?J2frhi9111iQ1HOa5eTvHtx?= =?iso-8859-1?q?Ur/NSP8kxS03Dx2iq6ZCXhAVtTFpMouBMbVEZoSzLiuYWj5ZvK4o8j+c2c/R?= =?iso-8859-1?q?84uzsW/BySMDFx1E3n6Lc9gtLQQHOGnX+FvLTtT6wZoWWzKt119LSZOOLIOd?= =?iso-8859-1?q?dznPskW6uKMOdAeeC6jE2mmauOeefok47lYzeLoNNXrnkENiz5woiSdef6ym?= =?iso-8859-1?q?TUzRp1kS49xF1wSbkk2X97seaTj3fGRLLmNjJJ0NYNCczXgoht3jrsRLKBJD?= =?iso-8859-1?q?GgxYnWvs9PD26wK7ZquDxLBVfPvnM39w82/5v2qIkNN33/HA9/3hSw/VJOI8?= =?iso-8859-1?q?llYkb7sfGaGnlPazdrWbLL6J8nmHST93rUiBZT1+ABWI5b3hUm/uNxl+tDE9?= =?iso-8859-1?q?27GrGyPNtpG3rEEHD/TpAmL5VivgWtlCQFUCNt9UooaUdcT2IITzpyAYHfvJ?= =?iso-8859-1?q?FZwctlv7OopUEtPJx6ZjFZhRaAvwGPuAus+qqyDm88uEEhS5xWpGJLDRR8m2?= =?iso-8859-1?q?8UETqcktDzFln2M1Ginjl3qtOzlE49NuCXhiVPg+43GkgZc09MzymQQxM28k?= =?iso-8859-1?q?GIGbh3wWZ4qEnqXa+GCAlk6rGnUkvi2d2Aio3AJA9VsLuD7pv5lgMVA+MJ5F?= =?iso-8859-1?q?m6tN148AKvcWgzl+Zuvu4uk6PgjaLDaLVerOlyoTMEYYrBruZt/Mg8Hu5MyF?= =?iso-8859-1?q?onRYcBHUGbAAPCHkCauO+WFuzBDhTQXOzhCN7ysxfO55gtjHrAT+fET9B0/j?= =?iso-8859-1?q?JGog9le8KGOLoafxIL4pe667u327MXAZEK9O4WC6XK2HeSW4PjAc9oplDHCz?= =?iso-8859-1?q?8oENLg021tNoPezjcRPBYtfz/b7AZ4TPWfLjxs4xzO/TxCfUIq+4UoWjRnGN?= =?iso-8859-1?q?9sQgYZlhEiMpfOVoz2eCuFutnIY5Fr9/xgHLXE5uO8LKu6PHata2THMFBvC4?= =?iso-8859-1?q?pisqOL0E8MyTOq7sfczv08jAOCsUBDHaiyiki7b0jjvEeTb9ItMrzwcDf4ma?= =?iso-8859-1?q?rXL7gp7JL9eixW+W/rxgAlLuM68ySnqGFAh/OhZgtV09LwYmNCvLNM+b6uJK?= =?iso-8859-1?q?Nymm0w3HLhtDoNtttwqd5xk81RmzfDTdbabR4NAaH8H6F62nJKwOTmw30s2+?= =?iso-8859-1?q?H530ZvYV7ZAMWmWO//EQotSqaYUgSoLjEXx//f9/lWC3voivz3DAcXdOJtsn?= =?iso-8859-1?q?hkKfcTYaRbc6uSSJDaG7upK680pVnWZHNzkNuuRWHen/krHcWALwkhRUdkWf?= =?iso-8859-1?q?KNeXe986FoPqwokdi0oZr/7vmC4BU74nUUPRJ1WoDttRMB8J16JFsap35j/+?= =?iso-8859-1?q?3wZWAhZd5ns3oF/pqACGOt4qb5Uy7RIPqJYgCApubpUegf7SrZBqfehmbjeP?= =?iso-8859-1?q?sNs3vbHujqVI+Cr6JFvpbPFp4BA59LnbgmWnmqIQkgKPA0mkf1VPidfjBJD6?= =?iso-8859-1?q?uvvt2KgL28m7Z7CAhi0/tnRBdfc6OIrs7LtYVS/GpvNP0HHajIg54O593tsj?= =?iso-8859-1?q?PaagKsyfzryudYVJeLTtZdF3Ri0DucDynvZHIReXBa6oVYVhzAl/KdbsoNep?= =?iso-8859-1?q?lzmp8Vl3euaNytAM6xwN+NcGEnSgC9nyaZwM3EpJsmr7iRO6kwOp8i2p9B6q?= =?iso-8859-1?q?hBJ16N8CxkZOJNUYrflF3EEUF6CUQ7gmTVxyL75lial52mlxkMRTgcmdDtp4?= =?iso-8859-1?q?fy50V+0eKRORpnV9I64lRPne9ew6d2KUQZW+y+nGkPngq8d8+yK9fdWHVpCW?= =?iso-8859-1?q?aRHVvLbrZVfvWTtz93nzpyUEfDDMJYHi/qagyCayc7yLXpA=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: purelifi.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 14aca679-16ce-4cf3-712c-08da29d1c45e X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2022 11:16:54.5137 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5cf4eba2-7b8f-4236-bed4-a2ac41f1a6dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BXITcGP8jaA2UiZpOao7qwu3jyUE23ABj7ldivfQoz3po9RRbEj+GTRVX4W2yNctw35582YFBJWmJNLd423OZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO6P265MB6205 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Fix the following sparse warnings: drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: expected unsigned short [usertype] beacon_interval drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: got restricted __le16 [usertype] Reported-by: kernel test robot Signed-off-by: Srinivasan Raju --- drivers/net/wireless/purelifi/plfxlc/chip.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/purelifi/plfxlc/chip.c b/drivers/net/wireless/purelifi/plfxlc/chip.c index a5ec10b66ed5..f4ef9ff97146 100644 --- a/drivers/net/wireless/purelifi/plfxlc/chip.c +++ b/drivers/net/wireless/purelifi/plfxlc/chip.c @@ -29,11 +29,10 @@ int plfxlc_set_beacon_interval(struct plfxlc_chip *chip, u16 interval, u8 dtim_period, int type) { if (!interval || - (chip->beacon_set && - le16_to_cpu(chip->beacon_interval) == interval)) + (chip->beacon_set && chip->beacon_interval == interval)) return 0; - chip->beacon_interval = cpu_to_le16(interval); + chip->beacon_interval = interval; chip->beacon_set = true; return plfxlc_usb_wreq(chip->usb.ez_usb, &chip->beacon_interval,