Message ID | 20220614122821.3646071-2-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB3H5UGKQMGQESD7NPXY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 432593F03E for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 14 Jun 2022 14:28:29 +0200 (CEST) Received: by mail-ej1-f69.google.com with SMTP id kf3-20020a17090776c300b0070d149300e9sf2800675ejc.15 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 14 Jun 2022 05:28:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655209709; cv=pass; d=google.com; s=arc-20160816; b=dGTRz2mnmJYMLzWBF5YGkVElcFRa+p6SdUpuH0Y7xK/ygC4Cy95ZhUH1uN1EkLm7Ux BGnhlh2HbNcW//8nIe6hWRWEXu5HEvwebRvUqf2FiRR6UegJPZxAz50K6uZ2BpOUTSzd sDKJ07VQ0jbCFFPsRouEdxR2kga58LdypFcfYk+ZrP5yf2rxnElyFDtgjn6zg+5NKcJX O4LLkjsQv+jNvaF0Fuia6FpSUkDmSTnz6xxx5qbzJqVP67VRTs5s/zJKFzmarWYtFR+f pp7288GOuRzAbgE7NaYCR+IyQVDM9UjsOJtcZGteMbw+F/JRe2hj9+Vb+IU8sqeJ/E9u n+mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=yctEy2Nq3M85nscL7bqITb5xeA3Kbd7u0kNVkdTNk3g=; b=i2YBhgUxS8rVIZ61klw0YFRA2WlryU3s2v0tkfVh9hc8JWl3QY+Xeh0hlqjFI2efFJ 4Yqjl3xt7SbRhKqKyMt4uTM32V0XkzSLHrrKco5/1Pw1ZkO/bf9FPz5E9JUlZDaWzE8w h/FbQO2GkcTjb8zURFAHbgi8MYwcozGsHSoxSiOWpiP7eMG5dbKW37wnt6fFOTIBWIDo 9JAbiF3SBKQ+EhPhYw5PP160iLydsZhnmbgg6Gc2yGouo2KPyJNjMiYnwiqyfueRQoRR pxLE2Ijfezd6IdJr6nhP/8iPDcrNtXbj9zOqhKQ+l4gcPjoto0MqYGAy/orjEJJRID/1 xUZw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=c010hK3+; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=yctEy2Nq3M85nscL7bqITb5xeA3Kbd7u0kNVkdTNk3g=; b=L6KLRtaGWTC3VLHb/fRlRcZcPTLK4LYzb+t+30bNVwAnDBZPO7NNGzJ81e9uuZs3uw pBTmrz89hxTGZ0WyJopdCqUYLlu1s8emQ5LeReNyksnDdur3+OuwrFv+UqTst7CwviBP C5x2Fmj/dn+5ERn9mXCOSRg2YlsLx7VQDE8tc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=yctEy2Nq3M85nscL7bqITb5xeA3Kbd7u0kNVkdTNk3g=; b=dLoh5d+3TYAw2YMleNNvIfOj3B82Tk1lcRjRN7Au2su9+t6ChxlXD3ebVE6Qq1mhOW igoMasbCFJ4GjCr2PByTcNJrucGNzoaw/M3iFfyABpEsEMAx+X+kLmcJORE5N+tg3Okh x9YtiC6Nawk7zcUKvn73CKkRJx0jSPRq2vmHeV1IR84nw8Y8vmG934BeYofRLeBOWVFg NJulNLBSVcjFomaJfK/oGrbUjeMEf6nVXHMFvZiL8AjmWtmdASClNDsYlQTnP67DonYw 9KbICT1GVhfQ2nFDSYsK2nl7/dzkWufXXvPybdGlYE2GoDUtOvtRQ2c5QL766zKEeFMp hLOw== X-Gm-Message-State: AOAM530klE0aJI0Ug8BK/pg4hgzwdeFSw934bnOCFabQdthn4EftMCVf 0mMN8FcsaHmLLcDcSMg1WYNIRdmA X-Google-Smtp-Source: ABdhPJzMEXjhQzP29AOeWVMjOdT115zUtWDRBl9anGlpfdUL4TtiWN779zbjMyCkBtcmIgUY0/BN5A== X-Received: by 2002:aa7:d295:0:b0:42d:e371:ded2 with SMTP id w21-20020aa7d295000000b0042de371ded2mr5853223edq.336.1655209708971; Tue, 14 Jun 2022 05:28:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:51d1:b0:434:ff40:ca1f with SMTP id r17-20020a05640251d100b00434ff40ca1fls2367997edd.2.gmail; Tue, 14 Jun 2022 05:28:28 -0700 (PDT) X-Received: by 2002:aa7:da10:0:b0:42d:d47e:87ad with SMTP id r16-20020aa7da10000000b0042dd47e87admr6008286eds.161.1655209707838; Tue, 14 Jun 2022 05:28:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655209707; cv=none; d=google.com; s=arc-20160816; b=sdoxDgODx9cZ/8igeaRsjnq7jiDnrcWycNqMclrKNkJ4BHdwKECXhIbcx9RKasVk8g 3aNhipluHqaPukP2UnyuwKu70AAarbBX5oTZ79OwTI59s1RV9Nc01DxZRh4L8d1vqKyz 1LVtTx//U9WEU9eDDP9Ynp362ePeLRJD0KD/GBN6M6dcxCXLRg9RRdNB4vYQ4FYkJxzu HFBqU/EUVQ4O20tQ/sk/fBXuESMNfaGxwSyi227Y9q5dOP32/o7dopyFHBQ3UeW9w9AF XDu15+GPYEe/J4INGtGss/JvFoa9rf7y1pOa5giFXLFwixZK0dClKB8mNPhexC2UPkjY 1rOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bs1pDxoqSwxHo6PhPuLte63s3qeUlbVxYb0CgUg+DU4=; b=uYCWsnnK+hcPLrod2XVXcqDWjeYYcRRDxzSUAKNkgs/1e217y8kE2PUm4s5QIhFEFU oTcCzLqSoOUg3TBxYgROCTZBburzwGrUALl09/F8zYjpy7cvVbwg8Kaa3KjL5H1Ir9M7 mIN1gFLmMI8pLxbJh8B8wc/El0YoKVK5ORrEYPg2Ain/djoGHI5pFEChxTDL3Hy3k+Oe NNvNznhuOnFA7EFmZ6YPirzNy6Jimr1+nyOleDvvgO5JAwwpJjJ48JVBfpvYsYHXMp3N D3qlU/cs2I/4GGVjy0EnksGaDH4xGerq12UK3fPmj19Hkh1gx9cBuiRGHZ0NJQgedmX7 SWDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=c010hK3+; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 25-20020a170906319900b00707ab1f34ccsor3246224ejy.111.2022.06.14.05.28.27 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 14 Jun 2022 05:28:27 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:1c07:b0:711:c966:f02e with SMTP id nc7-20020a1709071c0700b00711c966f02emr4194683ejc.221.1655209707627; Tue, 14 Jun 2022 05:28:27 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-80-116-90-174.pool80116.interbusiness.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id z22-20020a17090655d600b006f3ef214e2csm5087043ejp.146.2022.06.14.05.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 05:28:27 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Amarula patchwork <linux-amarula@amarulasolutions.com>, Oliver Hartkopp <socketcan@hartkopp.net>, michael@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Marc Kleine-Budde <mkl@pengutronix.de>, Paolo Abeni <pabeni@redhat.com>, Wolfgang Grandegger <wg@grandegger.com>, linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v4 01/12] can: slcan: use the BIT() helper Date: Tue, 14 Jun 2022 14:28:10 +0200 Message-Id: <20220614122821.3646071-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220614122821.3646071-1-dario.binacchi@amarulasolutions.com> References: <20220614122821.3646071-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=c010hK3+; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c index 64a3aee8a7da..b37d35c2a23a 100644 --- a/drivers/net/can/slcan.c +++ b/drivers/net/can/slcan.c @@ -413,7 +413,7 @@ static int slc_open(struct net_device *dev) if (sl->tty == NULL) return -ENODEV; - sl->flags &= (1 << SLF_INUSE); + sl->flags &= BIT(SLF_INUSE); netif_start_queue(dev); return 0; }
Use the BIT() helper instead of an explicit shift. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- (no changes since v1) drivers/net/can/slcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)