Message ID | 20220608165116.1575390-2-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBDVHQOKQMGQELUTDCPA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B6F533F1F7 for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 8 Jun 2022 18:51:26 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id a4-20020a056402168400b0042dc5b94da6sf15280584edv.10 for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 08 Jun 2022 09:51:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654707086; cv=pass; d=google.com; s=arc-20160816; b=z+xwexMhDFiGkXEK3mTOu6TijwUIfRAU2hfS+EBZVVDIu3ucg2G1YfqaOFSrSR17Eb TQYUl9TL2lr+Hci+mfAFgWQj2J6ICDd22Bpm56mWxB2Jiy/66I1htyTAMrNj4P7TCGTm TuZ20bJYmPKt7PtHzZU5ZG6sPqN7plAOyKD45g2EF+JHW6hkQeaevF724djMoSSdDhn2 MiAelfKkK8URT0orUz5NE4VQX0Al+gxX1ioeAjLHlMWvwp6TNHgt6sUZupx61RME8nzO /cu6WIXTLhlRlLEwgxV/MxvitjY64UICPJbmOoTEgfSAchuHbWwzSyq2JDiXkZNXEnFN QP/A== 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=Uxe8wepVgRFxBMI+X5zVNaWXYQVfQcaZ8ViwPhP9RFry0FKSIqzk3wTx6r8oa1NHU5 pduXKQHmM624D2+G20pS+tKpy8ZIDsGXQeo3TfenWm6nAMSMyJgXyo31MHHtxMPHnX9C F1sde1oFmcRAT9+MnwOLwUQe3pQc+sZlwZNh5Z8lz0D1GETdwnoYbAwwIb5OZjyk6n7h ObBmAWpAVw/FDHf6gc2ry4zr2eXkaVA5HOge1CwlB7CsQ7E4mGCkD/FkN5k7zrtxQJgC I9osDdinGyYrjmBV0YaNTyJssU6OaNFmkWXbd0JQpq8jPh2BDVEtW2KYTswZ7s7Fi1C5 z7oQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="f/RB/AAD"; 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=d/sv/OQLuTx3vlfpCg2WRDBskAJC6KEGweJMAiSvtvQg7CzxmWr5v6NUI5mYjEosYh RyI8qq2U+D3Og7btA4mCEVDHWw8y/sEt7vlivtSN7wdy0iQm2xTMqDI3IA+NOyySHZwx H529wTaz91sdPurePXRkZbRHCVQv/zRZxocDE= 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=KelB/KHr5VqzDeOdFVdw1qlVvgEX/sFNR54TDCSEA6q3AsCTdT7GqI6FXPYxZJGfCA WK3i1x3bbqlGOcEPIBIZ4UN1sJu+0VJo0H67QBy187RkSOPCH0/p8gbDsnzoiIbQYAEf xkuBR/peTYISk021eTxi4X1gq1dZXw/08TnP/gDyWr3FK8yq4QYP5XGvK2ziDb0tqWrP /Ld59oqJWYAET7LYLjdd1zSwRDbzqP8bAnuQNk2fwcEmHVYs5k5RXXJwU1SH4nyPryKV wV6ICiXQ+gwT6vb6fcgvBjtsFr2edG+AciutV+7BX2lXyp0Lqtri3oafnXyvwySb2yA9 ALMw== X-Gm-Message-State: AOAM5300U5a8xPcxg4JxMKhCiOSOSzTa7PcROh0v7aMvB2+JNDdHO9l3 9yzHnfGZzKXaX0rFfpc3hpOhCExI X-Google-Smtp-Source: ABdhPJzBMhZZTWkBrk+uVErqeLZ9NVTwg/8pMHM/Bdd7qy7oDkkZL1FZpcal9PexpGmFdpY0S3wnEQ== X-Received: by 2002:a05:6402:b03:b0:42d:ce84:387a with SMTP id bm3-20020a0564020b0300b0042dce84387amr41246027edb.3.1654707086569; Wed, 08 Jun 2022 09:51:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5414:b0:431:6a31:654d with SMTP id ev20-20020a056402541400b004316a31654dls189383edb.0.gmail; Wed, 08 Jun 2022 09:51:25 -0700 (PDT) X-Received: by 2002:aa7:cb05:0:b0:431:95b9:6d31 with SMTP id s5-20020aa7cb05000000b0043195b96d31mr9466015edt.56.1654707085554; Wed, 08 Jun 2022 09:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654707085; cv=none; d=google.com; s=arc-20160816; b=H0lUc+9gweZBKilkoMtDBu38VIMrywf+9U8WInktLGyxn17Q6cGBJVqiO4sfvT6HHs fRaZzxSYHOYUxi2lgeX7Z+HX2xGPZuizqP4Avsvco8wdCGdEHf+xHktLAatigU/TM4iH 5oQOPP9b4zHdDlMuqtzbQPd22vqrnwYaSiXFsZYtIJSfXuN0jI9iTQJeeGvtuielhkwW lUzv6hgOdo1g8Cw6u8/ULlDJuCfo/lHFF7jKmdqB90fwJjO1/mgEe/Ibb5z/H7O92OjS B5I7QIT6R6Zq5NUT4z3muubVlTm1R4pxZAddJs4SPRAQwQMf9jVal+rDX65caGmZ3fdR Iwiw== 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=tabjBUe1rJ2jkXAiyIASPG7d6WoExNvYZw2hXPjCzhnf6ZutmL3MrwkXUk5/+mlAdR RplHGGjAFtGrQxrspJcUcSUbK1WZXvRBsxGyKBCE4Kirg33sN1OyVRYnve9QTJLsXMxX PJwnrxZekEGB+UFffKi+spg8Atqcr6gGvcUQGzPohGEdwexIiO3AG9vtPbeaR+mR4M/r crP7aoKasQ7q3aSWnNGja/veqr9RC85eo4ynJ1sfofI8txoSnfreaqHC20JJjKVg3gtT N9GdNju2K9gBqdFAjK4iR/4QiYT/CqkjyjcboSPQx/BGdc0YfLN6mLbNzEL5Hv+YHKPt 3d0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="f/RB/AAD"; 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 e3-20020a1709067e0300b006f42a32ebc9sor9564249ejr.87.2022.06.08.09.51.25 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Wed, 08 Jun 2022 09:51:25 -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:3d8a:b0:70e:6b1:b004 with SMTP id he10-20020a1709073d8a00b0070e06b1b004mr27556484ejc.61.1654707085258; Wed, 08 Jun 2022 09:51:25 -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 c22-20020a17090654d600b0070587f81bcfsm9569071ejp.19.2022.06.08.09.51.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 09:51:24 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Amarula patchwork <linux-amarula@amarulasolutions.com>, 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 v2 01/13] can: slcan: use the BIT() helper Date: Wed, 8 Jun 2022 18:51:04 +0200 Message-Id: <20220608165116.1575390-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220608165116.1575390-1-dario.binacchi@amarulasolutions.com> References: <20220608165116.1575390-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="f/RB/AAD"; 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(-)