Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4139922iog; Tue, 28 Jun 2022 09:47:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vnzqKPLYj5aO2Q8cI3xev1oM1KANIj9EkCpBHkAOFoRLPP4qwsIMJ4CGfI+riAkDuLwGBO X-Received: by 2002:a63:104f:0:b0:40d:2293:f1d6 with SMTP id 15-20020a63104f000000b0040d2293f1d6mr17904804pgq.167.1656434828216; Tue, 28 Jun 2022 09:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656434828; cv=none; d=google.com; s=arc-20160816; b=Q7B+32Gnsz2aipH3sny86cQZc+mIf7gl+InchoZqT9bdfsOdNHJuV3lDoBwz3DlSlE wsaac9WA8hKvLEEdOPiqS6w55X7rMWHB4KFAaoLq5uOqefS1OZlczLgrcBMh88Q/1+ON hYynJ4jNzi+Pw6Rqv3Di+XmPbAJ8PylN8aLTduh7y488pl5p0QGjELizglupQlu/ze8g MLD+nkTp3TcVYbQDg95L2+Nmr3lt6rTu7+uWUrzIOp/rJnHV1ayMpTB+3IYj4hzuDmPY LKvDcNfVgEUMhc/7xNO+yb0As0o63AzIraQ1n9YyjkfPYRTrCbGJ9VrHnKnDTFZqn3re UpCw== 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=FMj1opvidl8j+o3JBpV8h4NsTFxMVE0F3bUPpyi6GF8/HXu0PNg+3q7/Wlm+IjxKko PmiA1zhV79JQr2DLQLPUB9GyfCQC7JSBKMpDs/mZGzZ2tff75RGEsf+KkX0qR69Kttmr 1gYKnxs/3VAz2fzMIzaOWh5afYV9KCE/fGUvFcY/Cq7QV5Lhn7PP3nWE0DUm4tSGxtjv KiBpN8rjauJNi6ll2BBOYD8TJyF0Y4dDAfb1mCKEj+5SUAvZorys4ABdG+Lnpi6Sm4Ca hnP2gMWkkqjmXG/KarVJ+lHsjpAQT3OLugflETY50bYUs2giNbbKjFxKghMpOfnKBkDd MhTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=b0U8IUi5; 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 u12-20020a17090282cc00b0016a147b8f68si18098436plz.177.2022.06.28.09.46.44; Tue, 28 Jun 2022 09:47:08 -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=b0U8IUi5; 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 S238621AbiF1Qfp (ORCPT + 99 others); Tue, 28 Jun 2022 12:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235950AbiF1Qeq (ORCPT ); Tue, 28 Jun 2022 12:34:46 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6937B3205F for ; Tue, 28 Jun 2022 09:31:51 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id mf9so27027782ejb.0 for ; Tue, 28 Jun 2022 09:31:51 -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=b0U8IUi53H55fQXPVpT7iWqKz2mI5/X9m8w4K55yp+aofkZ+sHFsvMtY/c+YH02gS+ C87rxW+fRKL1bImKBIRqvxd0JYMhVBSMJ3Vh3xkFvK08bpOK2Hj4TvEgeP+L22sApAOA rd0/6qM4ofM/J7pKsV9wkYxdeOO9hqSYmwfaU= 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=eKPArFj+sD9W+Tiy16t6AQBV1szPRM//xDXjfh0zZwbvtVUym0fxMRpQe5Q2jD50f4 oVX27GOuvqTubtejI06EUpeYxgcxjSaLmNPGxEuam456aFyEapF9f16SfLnrqx5+V7jf g+FyS3y4xQRn31Po/zNWkMsksvV0EiKRMFb20S3MiwgqpIE4dJDciu4I5cy0PePhFKOs wmsGopf1u7XHBz2pY6+Du23BQ70+koWl8MHQ8eg94+dPVZQpksXz3qSCIDucrDuz9dRe L6Y8dfyrlFvRVuPbKsF8RDQ6RB4EqwTUhs5TrhEVXeUrq308AylB9/88/y3NJyZl2thl L92g== X-Gm-Message-State: AJIora+yDTK1pfNxQW6KBgiqDMJNef3dusfqc2KsMyoaIG5JP1cvFpj8 /qK2aB54T0PbekzfA4gaoKzq61yX6VkpUw== X-Received: by 2002:a17:906:604f:b0:718:e9e8:9d2a with SMTP id p15-20020a170906604f00b00718e9e89d2amr18166762ejj.315.1656433909538; Tue, 28 Jun 2022 09:31:49 -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 b20-20020a0564021f1400b0042e15364d14sm9916952edb.8.2022.06.28.09.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 09:31:48 -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 v5 01/12] can: slcan: use the BIT() helper Date: Tue, 28 Jun 2022 18:31:25 +0200 Message-Id: <20220628163137.413025-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220628163137.413025-1-dario.binacchi@amarulasolutions.com> References: <20220628163137.413025-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