Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3440901ybb; Mon, 13 Apr 2020 08:08:52 -0700 (PDT) X-Google-Smtp-Source: APiQypJ8txwQ2didTzxG5QzWB1esHNG1UKrRw8eVGBBOp8hY64Wcd1aoiYZw8iFl11yVKY/ORn9P X-Received: by 2002:aa7:ce03:: with SMTP id d3mr16209993edv.67.1586790532529; Mon, 13 Apr 2020 08:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586790532; cv=none; d=google.com; s=arc-20160816; b=bcrOGrZd3tLJBHt8qchf3OOEESP49XzIUpUYTqld8ovSbTygfZAOTUvyMosgxmP/dk 0JwBVBqQklzlcDaNVGhySm+ViFBKWKYvYExmFN3Ntfg4221vqsMwvUkvqdEphCAnJwGg VanPpuNEF5ZEpet7JSJs6UFqboRN54Ns23vwopHTUagJSpC9tvu7q+9+Fzop9v++nAlA 9AUNmSQBoTBWs82ayKIHxvHzQ4uUCLK07m1XkQtK01RNKm++26FHDpcrwADbboDheo9v 5bcd8e1Z/kDKSmX9i5E1WX3uixu0ybvfngEUjvR8Zo0T1mEmpU9FTbmOtJauMAEB9KGf ez0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=U4z+CNXXBOZLPtyLvrJjk5bwOLHQwWkOTWzHK1+w8RY=; b=yOKBIpdNYGNkK6mFNBXDmbW8vwuM62YBBbEVNQGHYZJ+Go9KOCDh6/aJc6EGq1btjB buV8wQCzdCUP2vTlOs4fVcNbrRTX5paLkgUt1fePQoiYp07AHG6vAHqi6hGeFswSFDkA 9OgtIMTNnKAV1LQ2STEZ+f1OplKd7278Phu3uPCRmeFlVln/6699Aw+8HgjUqZWOdE1r FtbXixQF+j+YX4WBD2n5Q4CIjCeH7OJJyUf22RMX+vTzF4GAxM/HSUhv9q3rdbrAMTHr ZN4+wuP+17tZrpcH7bRNw+BC6XQ895/mOBhwsXBXb2Ze1XDu7MpdfLlYTtZNn14cHzXF TwbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xZtaYU17; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qn16si1378432ejb.66.2020.04.13.08.08.28; Mon, 13 Apr 2020 08:08:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xZtaYU17; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729659AbgDMM6L (ORCPT + 99 others); Mon, 13 Apr 2020 08:58:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:54266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727853AbgDMM6K (ORCPT ); Mon, 13 Apr 2020 08:58:10 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B9BBF2073E; Mon, 13 Apr 2020 12:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586782690; bh=IuesiDdKuTFLdMkQnFkzjJmikYEfulB5uV/jLl08rjc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xZtaYU17UeaAIkLF9UXgHgSF2mMm8QOYQDtu2x4MeTJew13bk69BH3xeXewew6SM8 fufkJS3Q4Xq7SAH0D3nmNN+aa6hGmKq/72syMNVpUA5MpryegVI4nxe22dB67PZ8Fh ll20MIUHL+YLHf7zMNYgtxyQcyS7aV+IZ/JcMMgM= Date: Mon, 13 Apr 2020 14:58:08 +0200 From: Greg Kroah-Hartman To: Oscar Carter Cc: Forest Bond , devel@driverdev.osuosl.org, Malcolm Priestley , linux-kernel@vger.kernel.org, Colin Ian King Subject: Re: [PATCH] staging: vt6656: Use BIT() macro instead of bit shift operator Message-ID: <20200413125808.GA3140872@kroah.com> References: <20200412093311.5279-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200412093311.5279-1-oscar.carter@gmx.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 12, 2020 at 11:33:11AM +0200, Oscar Carter wrote: > Use the BIT() macro instead of the bit left shift operator. So the code > is more clear. > > It's safe to remove the casting to u16 type because the value obtained > never exceeds 16 bits. So the casting is unnecessary. > > Signed-off-by: Oscar Carter > --- > drivers/staging/vt6656/card.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) This too did not apply :(