Message ID | 20220602160434.225417-2-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBGN74OKAMGQEIDSGRTQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1055D3F06D for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 2 Jun 2022 18:04:42 +0200 (CEST) Received: by mail-ej1-f69.google.com with SMTP id n2-20020a170906724200b006fed87ccbb8sf2709561ejk.7 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 02 Jun 2022 09:04:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654185881; cv=pass; d=google.com; s=arc-20160816; b=pLs+r0+HCfCs3Psb7l1DTW/ILA8ck4Fv3z1nMkwVds7YMFfQP9x3pa9X99DgXFl/jt Un0QyK/YyqWmKV0i48HrW29XVa22LjEadv59FeksEkUOVn3o2DgeR8ntRnvgFql10L60 NXHxMm86J4U+f8VXNaa95iu7ejn27+wKmoUMg19XEejDxQdGLUaqQNkPcFSoXhdEvC28 rNpJbXFKBqc8hZAx+BSjNbOU1j5FexZd/aSgbzW0TWKOQKGJTQT0z/N2lC2zNlOQ4Tmv RECoTtI/RDsHyqnOmpf+vRkIgYW+b4pgjSO7f5C/tqMdo98jNnrZKKYvcVrxD5kfaxA+ kuGg== 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=BXe2Csrx7+YQw5iTs8W4fx6z3yUuHJzNqGnAB+rOVkIv0p1ryRThQtcu6PmF+yIl5b Qy+eqx0x39FVvbiCuEDU2ssQjePdbNUZO8VO7JDbKNDRi8amDICzpE268664yydehpSq r3JejeF10jdqP33zJcOMWi/4/roF8BSmzZvjBmhF1Bkn7JCswZ7753rY+nKkfym/usgI s3ImMBzXPh40ncpWWnYWfbOi2BYm5Jm67R4acVb/v2U9GGWqh30mzHjELnagyWu4z8ky PMmGlvPmVPs1mHOkWbKW7KqQyEZHVPKiTUomdmMAe6Dfj/KTLsRQPljR5RkHGd8J3FyT Vmcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QcjxGHdf; 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=Ge1tLCaV5HgjeKw+nD5IYTV7SIaMN/Q6fFn4uN5ZvQsQAYpGQeEB7mkkJ7d1657kqZ 6rsqeP7oUaiAcknLpP1Z7yvToepGztpa0vC2r155PvcVHKELVQZ5TZz21D8txpPEiNBf W3Q/bOFYSUV5JCY2Xwihol+RiAMbTuZeip0bw= 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=lW+s5Rs9/VglwFz7cFFsmw2qeVV473urHNKIOYKYybHh2yQXfs8uqnVjp8gwshgpRf F1RVuB9qXpqFZKCxf13wqAnN0mLd/mKqm4MF/nIAia3+hX+CQD9Ifvh9whbtluZOEIIz KRJKabr/g62dNCPEYjeffRjUoXD+/90Ar5AwtOxmhATb7lsBs+RAJ1RPWuQ8Qraf8xYL am4xL+lNcnEGrm/NmClYBDc8uksRvQyhTIf8WfeNRoCk5k42P6dZVGgfRP2tQzK75M4J /CYisiXt+T8BpSyYeGUOMj1fAvC9f0pGlV50fPBX2195roA+kpSy26bfoIEIT2SfKKXs eh/A== X-Gm-Message-State: AOAM533vz5BriprMupdROajPybXYMI1q2uctJdXI9PWFi53wDh2fN2hP oz9OC8kdW7txnqMQh1kcpVMwQQcd X-Google-Smtp-Source: ABdhPJxD6bQc55gC8gQUru9TYwwatw4sC5TXD343ngf2nTVLbzOCHGvyxDkoHdHB6Az9WXGpPlcJqg== X-Received: by 2002:a17:906:5055:b0:6ff:1dfb:1e2c with SMTP id e21-20020a170906505500b006ff1dfb1e2cmr4839597ejk.200.1654185881892; Thu, 02 Jun 2022 09:04:41 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:294a:b0:42b:31b9:2087 with SMTP id ed10-20020a056402294a00b0042b31b92087ls2362006edb.2.gmail; Thu, 02 Jun 2022 09:04:40 -0700 (PDT) X-Received: by 2002:a05:6402:f:b0:42e:561:a1c0 with SMTP id d15-20020a056402000f00b0042e0561a1c0mr6215659edu.309.1654185880755; Thu, 02 Jun 2022 09:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654185880; cv=none; d=google.com; s=arc-20160816; b=pQapAg+s172HXSfI8l7xkwasw4I3EKivGYAzYfOBOL7zaJBCwrsgmgKbtPvGPABMZH bqlNSHBbn2Ka/kcOpchgP3Kg9kGCKCD7H7sb+8D1fwGCTHBfp9OsahBkd2G2z3RUhdMv OJeyeBVjtyP6WwNDcTQpgAZS1mKqdiLken9vC7F0KnL1KAcG0klDZrKrd6ZbCAJCTP6a lFBp6azgjvCq+yMZckI5s8bu3IbNhymSS4ou2q/SmsjlapRp2BBafNu+qFaDHCnBOyVa miI+bCDXyrPPIlLsgcNQ9GBr0bHXT2vi+8/eCtvYvXOrbUHJVDq5uQq9lxe/nyNY7YX/ iipg== 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=j9buHaVlsNoKIJ6ZO+9cdA3+DXZq1tS6IyVq08NWQ1ioHWknIYewu7zSMqQuwpeWWk 6jq1TFy4WA8D7m65vliaXSZeWRl6A0kgZhhkOUnzrz7mksgHsSiUFf4eZEzrn1IUzfaj 2s5+QBacvhnEHHT0Nk6MHNM3SyuA5U1HI42d5ITN75aKNW7ypMMA755DHrJyaQe61v8t 7niLsgdwUGDVLYQxNThWSHCIfe/+VVn+bT+jtK34HsAOPD2amCpPRgJqGNo6Os3Kh1TU n6M3x6dHEZ0w3e0f+D6nMyPB89X9ZQoysGH1ivdsWWq/G2Mhy1a8xOUp480ghbEySgrz 8w9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QcjxGHdf; 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 k1-20020a170906a38100b006f490429c54sor2558543ejz.124.2022.06.02.09.04.40 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 02 Jun 2022 09:04:40 -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:1621:b0:6fe:fc8f:21f1 with SMTP id hb33-20020a170907162100b006fefc8f21f1mr4984906ejc.359.1654185879526; Thu, 02 Jun 2022 09:04:39 -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 f3-20020a056402150300b0042dd3bf1403sm2637095edw.54.2022.06.02.09.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 09:04:39 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-amarula@amarulasolutions.com Cc: dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com, tommaso.merciai@amarulasolutions.com Subject: [RFC PATCH v2 01/13] can: slcan: use the BIT() helper Date: Thu, 2 Jun 2022 18:04:22 +0200 Message-Id: <20220602160434.225417-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220602160434.225417-1-dario.binacchi@amarulasolutions.com> References: <20220602160434.225417-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=QcjxGHdf; 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(-)