Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1403981iog; Tue, 14 Jun 2022 05:32:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vr4ZcYKQ/6rV4cZbda1HhcL767j0TZB7znl/9v75KEx6L9MjYTrcXiEDSpeUV8x2CEJIrP X-Received: by 2002:a17:907:1b1c:b0:6fe:f1a9:ef5a with SMTP id mp28-20020a1709071b1c00b006fef1a9ef5amr4160461ejc.233.1655209958458; Tue, 14 Jun 2022 05:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655209958; cv=none; d=google.com; s=arc-20160816; b=NKBPvFYw5wrMoVgbkWI24QfbSe7IxljqIrQbzXX/nA1IdzNeGmJg1DmIC3+9dy5lym zhp0uYs/Gwxc3HfERQkj0hHavqbCFFtlE15GTlC6ZIm1Vsrwf17FyrGRsnA8+Jjsevsv /uGpGlh37eHZOpC/eVaKBsSyCGJhOBRs2xqO5zpQ9Ad3DopyoiQ++1mkUg1+zTefzO+i TyGmi/4QU8jMfOR4LADN1SV69h+7xHreYltDYzJ9AeMPOtpsOWwgcDDivSdZIkNmWw5o WpBERzMqSp9/490t+r1Eun+NTjJYZlejI/S/EAQDAbG4nnGUE6zQcB+GVLfAM1vgiv0T Kztw== 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=rwWwzff5jDC3ddmJ2XOa3G0ByyMoTmEMpVE6ktgoXlIpRPWf4Q8JmTjIXXp85Knnin urPrn/jenNSLbhwv3quD0Gb7EY+muvKvbbDJ7rCwnwF74PGo/IgWhXS6sP+yh26QSOpk JrvLvkzGzX+dZXWIMwLn5mlfwXAMGbxW6AlOQGArc+W2y9utf4T7O4mdcb21RUOuhr0d ZdcI4KWB3qSnfYAerp4PMBV5ak+ES7+PQNnd33lGu6OzOSeAS3FqfntlrynnQ+P/M4qJ m03+NfNNeGgYCQKF/3U4he0fDHUsHwIATFGzhag16P/rYzaAP15cgSXJPSD/Mh/3f1o/ cC+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=c010hK3+; 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 gn12-20020a1709070d0c00b00711f55a31casi11909295ejc.775.2022.06.14.05.32.10; Tue, 14 Jun 2022 05:32:38 -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=c010hK3+; 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 S242976AbiFNM3I (ORCPT + 99 others); Tue, 14 Jun 2022 08:29:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243267AbiFNM2h (ORCPT ); Tue, 14 Jun 2022 08:28:37 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF0322B1A for ; Tue, 14 Jun 2022 05:28:29 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id gl15so16860837ejb.4 for ; Tue, 14 Jun 2022 05:28:29 -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=c010hK3+ahAHRLBDp/YkH7ue/xhQVFHLKxwyUX7pT4nvITXGSPVRQWGtNe4e8BJlHw ShM/jdfA3dXz598QFtXn7PbLhrOdrk2wdQNOIpY9KXOhlDj4q93DryPdDogflmTdjgcy m2S75F2hujDTdCnjubcb0QdWgXbpIRBVFb6Cc= 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=WE9PiHF7NNCzRJpxGfK1C4f7ER5QIKFvY/zpTKvWyolEj0qFHYHyX1LMqPM/EhoUHD dPicA68JPtnNZHtrBIFoiYQjlMrISx7Angf3AqGSulWYqUgOkA7x2tO4tjDTAATEHphE o88R2X7gr7KUOK0X3ELrXtd+uqZAydc2aPKTa07r6sojT8VglfO/xK1124NDeSMoP+lo o62QagXusxv44GXPenD7bwBvZ1bHmgamzkX27c0g4YRNumShgpTF5S3h0WI+YUulPZ+9 EU3y8A0zURMcXjJTCi5sobGeiZDukV0A2iAHbcLG6+5hrJ+Oq7kG+0H+T71t9OtsphPQ HJfw== X-Gm-Message-State: AOAM530BbxfsWRYyV9ymv4+/sOKQ0g+hOMSdSWU1xfvsNQq79f3fSwO2 TAWUpgs799FFapBcuPWjtRHFTPCKIuSUtA== X-Received: by 2002:a17:907:1c07:b0:711:c966:f02e with SMTP id nc7-20020a1709071c0700b00711c966f02emr4194683ejc.221.1655209707627; Tue, 14 Jun 2022 05:28:27 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-80-116-90-174.pool80116.interbusiness.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id z22-20020a17090655d600b006f3ef214e2csm5087043ejp.146.2022.06.14.05.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 05:28:27 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Oliver Hartkopp , 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 v4 01/12] can: slcan: use the BIT() helper Date: Tue, 14 Jun 2022 14:28:10 +0200 Message-Id: <20220614122821.3646071-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220614122821.3646071-1-dario.binacchi@amarulasolutions.com> References: <20220614122821.3646071-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=ham 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