From patchwork Tue Jun 7 09:47:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2014 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DFA483F08A for ; Tue, 7 Jun 2022 11:48:12 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id m22-20020a7bcb96000000b0039c4f6ade4dsf941184wmi.8 for ; Tue, 07 Jun 2022 02:48:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654595292; cv=pass; d=google.com; s=arc-20160816; b=qQjR0qMGt2c1+fasRuHYdNRldOVjmeKTcmftJlBYHQBeCRDWiBIEDy0/E20V7PrOd7 zaQWoYYPgxGvc5T7WgQGlozdUVgKsgQLS5v7M97//L+ZHn5ah+m/Srsar4wVvtRr9A7L Dzv7oioyXmVTdhA3gLlVZbZT/fXwgCw3sLQB6Ji5oPAW4c5YZutapS7wM14rwSS1PPjW 4/IM9OH2FMnps6I1n+4W2l5TEYn4fMelKI35K0odUASdKSlwtAHzyaYUC0fHBg2zGfkc KkyP0sq4fwu0erKtRlWzMTz4OcBbzqy4sjhDY6X3yTH0POeCK6DajgyUj+unrU35qCCy fCrg== 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=gOthReazouRdDqARs5P7AckfZSnohql48BVuvI/qJ6k=; b=jiFKLO/4juuQ/juF+o5MTGTvH28w7yamIVbg5WrlmJFlV16GVi4OcGYo/ErysQl75T nCoGwNBIE2UjM5DkVCPymaKuBj/Et4ZClBXWGOdXAhPGJxFjI6xDVuIf2ZskxEVjwIND uHDYGBdvWaQWah3mvsIBhke1RoZSYMWsDakeDyRPqmSV0/G/ZKk2roXhqX0PqV/JM2oF GD331VoHrRQ4NQjMQsNc9GS+dwIfWcjvBsheDT6WOMqJBkd57VWoaJ1WruKGiYyIoRm+ D5AlZBFaWubGF3MemtiA0Au0UuzIh7yHTBTZMxDWBfiZY99eR7H7/Nx7JrzU6enqYCn1 XRSA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WsqvRqj2; 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=gOthReazouRdDqARs5P7AckfZSnohql48BVuvI/qJ6k=; b=XiyEczHsgcqwPo9KuZis9EuD5ZsYUjn70vcduWuLhF2Bik6m4sGdyfcWRgBmGVuTQ5 suspm2mcGqeLZoLIWO4xHAkCWTK2bzcf9SR/DxsLz/uJ6qTQDOquG7OgS1L3Irrw6wAU AY1rJcz0ZVB6X/+wiygUJdNTTHpB2EWB7eAAc= 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=gOthReazouRdDqARs5P7AckfZSnohql48BVuvI/qJ6k=; b=ntOoMDJ75o9iqczhsvsOi4KZlvoznKrhxG9RJmuhRvf3NmZYbFu02Kibe2N0VCBRQQ F9FNWF1bqb2zk1+hCHTKO7v2xwQkIFgSZ1geot4Mlk4J2TPzIDeujngmLID5PtqUcRmM fNMHPSM+B1vfPwznxblt6Sh7HTon+C/d1QuvDswGcbeKm3u4gKJtSF+DQmdlOmxsxvoX UnoKql+nMY2bJCj2qq9Ok87pgVIUDcuyLvO7pqpOonGe1VSFeULejLiXnfGDyRJhhj9w fC8z1XTBEW/I14GxeL1I1M1fP5NfuOnXC1N6TurTtlfgmYMtSjdG7kqveNwtbEQyn71v puFw== X-Gm-Message-State: AOAM531wcq4NAQy8vlVI5d2yNPsavRgFXybPNwsi0t68rG96BbM4pGbo Bgn20j5nhpxFznAQEwcF2XP32MRY X-Google-Smtp-Source: ABdhPJxQiumBBfHNZnGEIKzkFTh7VmFAf3ab4zpi/84sakjfNEZRTCyH9eZG1RaI+xh9SJrvlz3R9A== X-Received: by 2002:a7b:cc13:0:b0:38e:67e3:db47 with SMTP id f19-20020a7bcc13000000b0038e67e3db47mr57688809wmh.133.1654595292692; Tue, 07 Jun 2022 02:48:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:6dab:0:b0:212:d9db:a98 with SMTP id u11-20020a5d6dab000000b00212d9db0a98ls4152719wrs.3.gmail; Tue, 07 Jun 2022 02:48:11 -0700 (PDT) X-Received: by 2002:a5d:4d05:0:b0:218:4d71:5d8 with SMTP id z5-20020a5d4d05000000b002184d7105d8mr3680831wrt.518.1654595291636; Tue, 07 Jun 2022 02:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654595291; cv=none; d=google.com; s=arc-20160816; b=YyXAlhvOsl9o9ZFmPYaJ6HIhegXwbh9xPog32bxRGPhAyJCW4SfV9tNNwUhUpAZKqs 6nIBRDov8+qawKCvT+geXisu3GqJ6jLV/NY1zPmA4Vpiv/opBQtZS/uIlomq0CSfdwft +vFk86TK5vMnzS4YCyxpthBWfC7f5rP0Gvk48OmWZ11mswDVAtg2o07eqHxVQMeSwrB5 068R5PlniuBhBfj7XMXOBYRJE/pV0qqyZQeVAGtpCUg3dbusW+5UmruKzhFdxgAD/IZJ azWBsxseEgJMLbMVakSoBbS5HVnwu4TP/437KlBfX0y7+OQ2WXXVztvHqj8UZvjgF9I7 pPRg== 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=CBY26428AsgO42bUNkI3Xmu9+XGt4S7I1D7qDZJnCuY=; b=L3vnW0WiI3cPae3OJcy0FpvYE/SLb0L5E/V9Y2IJlSefdUeFFWjAYyeYKzqQVLnLyF q4wIfs0gAHfUx3tUPuRwhGeL798WkukmlG58nZIN7A2iBfjEmYuc5b5v4QtF3Iopj3mb dfFQCB8EiQFL8i+6i7m9HeHSXZgeahKhw6gKVB/ddfiimwp0iCXPrz5sSRgDz/guI42l BQAdSm/gSnHBi3M8SjK1hqS2j3OwCS30PnCeVuyeHllvgw4VSjyJB7GKMPb3CbAK9mXp zEwKMB1h2h2/AKcClgTBcs09v+Bo/27cc7Jbb6264zKYMllSu2+j37e0GUoH2+eah/Jc wn+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WsqvRqj2; 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 r9-20020a05600c424900b0039489e1bbe7sor5419941wmm.15.2022.06.07.02.48.11 for (Google Transport Security); Tue, 07 Jun 2022 02:48:11 -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:a05:600c:3caa:b0:394:8fb8:716 with SMTP id bg42-20020a05600c3caa00b003948fb80716mr56163311wmb.105.1654595291462; Tue, 07 Jun 2022 02:48:11 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (mob-5-90-137-51.net.vodafone.it. [5.90.137.51]) by smtp.gmail.com with ESMTPSA id o4-20020a05600c510400b0039748be12dbsm23200547wms.47.2022.06.07.02.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 02:48:11 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, 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: [RFC PATCH 01/13] can: slcan: use the BIT() helper Date: Tue, 7 Jun 2022 11:47:40 +0200 Message-Id: <20220607094752.1029295-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220607094752.1029295-1-dario.binacchi@amarulasolutions.com> References: <20220607094752.1029295-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=WsqvRqj2; 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 --- 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; }