From patchwork Sun Jun 12 21:39:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2048 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E3BDD3F1DD for ; Sun, 12 Jun 2022 23:39:43 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id j4-20020aa7ca44000000b0042dd12a7bc5sf2920016edt.13 for ; Sun, 12 Jun 2022 14:39:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655069983; cv=pass; d=google.com; s=arc-20160816; b=i8lgnQypvc7Zit0RcJBSyNJfmLXT/0qE314zzmE4DWOAZaBeiTwYi0fJQJPvFgCudE B0Ay4HfS+A3/bBXZslTFJTIAdyJlse24bX6MY+EiymWBvD/CHXBNHB2ANpQt8pD/EmYB gvEU9DeNWSIOB1rOZ34U2OBkhKD1e3sIXUV+Bywnr/SKapK2H1D1P9CQ+6JKXMbP3FEP vYV9iEjt8UQdg1oGo7dTYtxhtG7MuYfy2Fzi9doPsjJlAthixQaJ3iuOimm7ve+JQt5q /NMZCCRVWEwwDZ7aW1mxwgL7w9jLerCcdK3fNkBgbbGFlvA+AKoOFAdMs83GVY1A7Ofx bdCg== 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=Xk1iESCjq7+VlaabFr20V5KOH5i4wPD4H8Nc4BX16KbSbk63cmyMBOJj9IYeQhFxw7 NHEIoAlymTD5W9fhBPt398+9Dob8XaJflPrYKLXHiHO81iFSWimXhYFdgda8bGOtj0Wl NYUvVYK/6t5/DcRsAF6J6X0XoVNNc4gU1LqqV+mb6jAIsubSSLRHmphUeo+0JpmCF6vK Gpmx/jfdF3xiGwMdZFbMnZX9saaPLWGcR/R48lA/WfETmu6WanPXUCLFls5aCYVic4su ZQvbrXFpHljD62EAs7kCYgPv/aPJ4sodCDg4UXjJrI6moWWOS/d9bt2Xl/BG+AVGK2Km 3KRw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OUYQfEQr; 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=UjM6sjxcVsI3Ka4YLa85XOY7E5zWeg2fTdpwrLKrQwXmM6FHmJazejboMefBB1DK9q xxyaB18mIxihUVu6JycVqv8jPp3UGhfY3Ww9dY9+FdRNzevXwc3+oV8Ft3pT35e+XadR Y5OdIVhWCDbvPalQADd70OkrLBehrCnnNwis0= 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=RAHOsbiOrQS9c31u7GGVwy4oJCKDWh+5HCz5bAauosYe3mn9TNGg9NeOqwQKgwKYzt lNYHLEgqKxaePe12Y7A2hllmKWIdrXKvfksJBel14+zjoHaMcG6WoptbUHos8A3tbIWA GSeJ25eQ4NcLvP2jgkZca6hwE7RWpb85Nar7Glim6K+6eL9w/WmykPyxA5d1mWu7B9ao AII5yvD3Ueli9gSsQf24JiUtbt5WKhLtRGq/uFXl+tYCp/j0meO1FtgEzfq0DXI8zrSj /fu7Q3NVSU84wFG7R7s/MmYPPhzAIGfSKIkLDIQ9iP8QnIwmpzOahTjDdtDJ2YcSA6el igdQ== X-Gm-Message-State: AOAM530Akt4h8nBrch1wf26JvT1oPLJTunSk/2GKeyrxrntITa8nB8Vd WALD+UpDOLc8xZxSH/mA2mr30kD7 X-Google-Smtp-Source: ABdhPJyiSrCQtvq1rzFfRO06ZkAY2OqKZBFptMVeXPoSAu1t1q6kS++3kIDuPSqWpm5pDnGTvJB0Wg== X-Received: by 2002:a05:6402:42d4:b0:416:5cac:a9a0 with SMTP id i20-20020a05640242d400b004165caca9a0mr61594542edc.86.1655069983620; Sun, 12 Jun 2022 14:39:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:2741:b0:41f:7eee:e393 with SMTP id z1-20020a056402274100b0041f7eeee393ls1835879edd.3.gmail; Sun, 12 Jun 2022 14:39:42 -0700 (PDT) X-Received: by 2002:aa7:d14c:0:b0:42d:bbab:43d6 with SMTP id r12-20020aa7d14c000000b0042dbbab43d6mr62956091edo.15.1655069982576; Sun, 12 Jun 2022 14:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655069982; cv=none; d=google.com; s=arc-20160816; b=bB4bA4sWeFOqMOR44Q76MmFApD9Va1SW4kPny6SOQWdgIOtE+QGbAmNVCe8PjtAR28 AK4smRfOlptlQ/8tTtJLXr7/u6XmpBuyb6idBzkIAF0PPtC+xsNEQDTkTfuPGsL7zClD VGbeCuxtvv/yZJOoq6Pj6RCg4To7ViczBQfIvmds5nh6lQP4JRGHg5Qt+U7u6xQPtYNv 1TmM0tNNF/OgvuGxmlbd0SrUKcOTP3wpJ1v13rOulsbmo+5ynnSUm0T2lz9OoumL8CpJ SYSaaRdoR70FUfwV9L/5DLQHxI3utuEALE9HonqWEgojVxIk7p/h+c0MYfJV22VJ/A8E /vTQ== 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=i8tA0rvlZzyDkz17jilhGBV4z2rnosffQZAzRmYBlXpNV9vFeIp+NdwO/Tnu3gTX12 7STU1/G0/1QpwzLar/FxcOPeHxLAc6fNBlQ7MQ7XLc9syIumu5DzuI4u4UhdYO5gUh8n BYuHCTv6Keq03qNQGsToaE0SfovX55Zoko7RKJ8BPbImkAwxjtY9EJhKqs/T5CWmHT83 dKNZDwhZtIvuc6/tdJZT+dNOiMHGlDXeGNpeUMcbMya7p8PjAXvH+otJXkDhvHhn1IJr dkhQSFdbQcgcaq1ARGXzFLh/92RLhLMTfRbVNSWe8ziWxcN6WSkJ6fEO9VNJOctQyMsE LqNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OUYQfEQr; 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 jz8-20020a17090775e800b006d531251449sor1331867ejc.66.2022.06.12.14.39.42 for (Google Transport Security); Sun, 12 Jun 2022 14:39:42 -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:1b1e:b0:6d7:31b0:e821 with SMTP id mp30-20020a1709071b1e00b006d731b0e821mr49755379ejc.334.1655069982282; Sun, 12 Jun 2022 14:39:42 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-116-90-174.pool80116.interbusiness.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id u10-20020a1709061daa00b00711d546f8a8sm2909398ejh.139.2022.06.12.14.39.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jun 2022 14:39:41 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Oliver Hartkopp , Dario Binacchi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Marc Kleine-Budde , Paolo Abeni , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v3 01/13] can: slcan: use the BIT() helper Date: Sun, 12 Jun 2022 23:39:15 +0200 Message-Id: <20220612213927.3004444-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220612213927.3004444-1-dario.binacchi@amarulasolutions.com> References: <20220612213927.3004444-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=OUYQfEQr; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Use the BIT() helper instead of an explicit shift. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/slcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }