Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2687536iof; Wed, 8 Jun 2022 09:57:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAI4tEGqkDOHhDOZiMZmd0mIB2ePZ5R0gAghwYZG12ZL1eQ1z9VVh6mjmPSO9ayKOsFhno X-Received: by 2002:a63:f09:0:b0:3fd:7e20:6508 with SMTP id e9-20020a630f09000000b003fd7e206508mr18557652pgl.32.1654707424962; Wed, 08 Jun 2022 09:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654707424; cv=none; d=google.com; s=arc-20160816; b=nKOzwxSnfvRDd5Hzcs6YIitX+igSoNUNrRFQX/Aq2Qzj+DZlHGTQ7sn67SkchrU+d9 eyIJq78VCS57lSaOQxobA43Fmr7v9075O6E9kiQDwmYittVW0fVq31aDBnbPYYTRQJJv 1jh8BYEICV5di9JHMkDunuCryZgMmwnDDyM0R1uVap0lmbRJgFRWIbhTtQcoPMdZFBZb 8zgQHOxGhrFukBheQdg28i5flnTeE9vezlBBYyKHnK66zDu3CD+j4r0zGQ0KqBxVDL3S npK2iRjLU1rWm1M6nJQkJXnTQzoV5B/eKmQlqzFMdDAdHI1NlLW7r6MYxipUVNZZlgbQ 2h6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bs1pDxoqSwxHo6PhPuLte63s3qeUlbVxYb0CgUg+DU4=; b=Or0s4n3dtApyn94FfVY3DcxM0XO2NyyJmX1W1gY/wiXECE6rhhPSeQZgGC6WkmXzaT 12qC3Y4lsr9KbTJcdOciyXbbksAgqzUJoQHCJFYOdhU2F4dYFAR2iueq1zVugluByCwD n+ud+LaTgw7d8dOiTQgjuHEWkBnqzvirA2wTcxwbPLFOwVg/gFiJ8Gn74PGDbQy4ZeYz OQrTYKjUJbLKabPORa/LEng6f7Ra872uMr5KVlQ4PsPcfw1CXVp+EmdoawqX5qiLm5Ti gJ84y9Qsmog/H3Ark2JPlRTx4kPJ+k0RjfULc+QunJix6U4dv2CFNx/g7YqyMU7EMWvB a0ZA== 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 linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a056a00134200b0050d434ae30csi27911121pfu.217.2022.06.08.09.56.26; Wed, 08 Jun 2022 09:57:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; 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 linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233773AbiFHQzZ (ORCPT + 99 others); Wed, 8 Jun 2022 12:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243534AbiFHQxU (ORCPT ); Wed, 8 Jun 2022 12:53:20 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C2D337F05D for ; Wed, 8 Jun 2022 09:51:27 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id kq6so29583849ejb.11 for ; Wed, 08 Jun 2022 09:51:27 -0700 (PDT) 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:content-transfer-encoding; bh=bs1pDxoqSwxHo6PhPuLte63s3qeUlbVxYb0CgUg+DU4=; b=f/RB/AADgG9sZPdH/FFOUOjP3DRCdWgEZkMCyF3Wrbhsdq21HPvBLY80JKH5KLQWx+ 6+x2um026CENOu0ajA+XBYLhJLbisgS+YtX6v51vRcba0N7G26i7I9TbyL5yV4qN/TeT depNj9mKPpvaNLgnb9VQwzA2JB3OKiiEM8vU0= 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:content-transfer-encoding; bh=bs1pDxoqSwxHo6PhPuLte63s3qeUlbVxYb0CgUg+DU4=; b=PtLCUIxHa4C6yBebJSajgWPTHgqEqf5lur4+gyDua+unIik6pL0OBr6dUi5gaJj5HS UHN/ZAvPxOa03lzktaEAYP7mkmxMplf21fM5BpoLAPet7Q9DcNGKElWGQF535vbv23yA 5lmyeR0Zt+4u4XvSYjxhh1ZoEE8V1dxpYEh6EXuqiTnENP8yHvOCLAZkn602lWAI0MnK HLAlHNFMGgDaVYCf63YoODGbV0//dntBDGPiD7pCoZzLJbZI0ONwtZjMGoaFdNZ0P7ZL DlbKjDwzEJkCRgYuquBzBjCUit0JZw8CK/ayb611/zvZf0ASOHf1g4J1bP8dGygVFE8W wRQg== X-Gm-Message-State: AOAM533N8JOLodToUXEvKnjxkMjkpuaWAe838B18/2y4afV1qLmS1isp VlQMNXHFdGaIW3KJ+bZLF2x9osVGn2U4fA== 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 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: [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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } -- 2.32.0