Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp189855ybb; Fri, 3 Apr 2020 00:25:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKexVu0heKOrh9rM8eyF8bVMN/DXv4BV901N0WLGZC6V/bXyVLUgiKZFyl9N3XltgD2+ci+ X-Received: by 2002:a05:6808:2d9:: with SMTP id a25mr2029669oid.125.1585898748949; Fri, 03 Apr 2020 00:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585898748; cv=none; d=google.com; s=arc-20160816; b=rtpei5/puKsaXqFXU3iC904fXKMJxMFJQqGdjOTabS3Qmt8hVXnuI4w/X7/hKjBkYo 3kx7sTjMAI6EhQVG61cU23rqIJsGMXZjRBgIBYlh7NkIPDVFBdVjoz2MWywicuBAy5to dyXs73Bz6dZIaXhbYkQLKSEuH2QqAtztSxEcxZ5OYMGbrf9QZvkxXLqshaF9P+89PV2Y 2IEaxlNWloLSB9q4+sNv0fW3G7u+3Ojwou0vbnRLPxAgaMbIWPW9Rl2puHT/AP+CVvhU 14Q4u0fLCvTebTaTEDRqc0Io7WehUMrOcdxKelnEpZxS6imU+mmFp0vvXs9m46kvi72o cwig== 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=f9NcpdR1UH4awqfsGj9y3ArKagLVrujqI21Y30mY/XY=; b=J9VVcg6v4NRUUON+bx9DBxrJkB9Kt6xnXIp5Uuzv+zGevO6gumH01iMub/H2ri+CvE VwWPi3mIvkTmNV0wkJIogCE7kJwPax+N/7G2a3PsyVV4FzopyoO8W5LIUne2ExgXYHrP s5U1tVolN9x/137KXgSRxcf+FUrPmOBBjtzPCmjxZ3lE0LQgNTk6ORRUAVj5/Vf7TsQe qLo2Upk0vsyoAOJvd1wbtHRzzrJBbSG20HQJaHfADKHSiHeRWG4nXTR7/TQe11sqLK9W SdJ9CQJGyBzUH/mnZhiicsWxyxbI7vCwBvg+H+XG8GDlmR+BX83cCPmabYPnP/958eLD Vskw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V7FdQBm3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si3298626ote.164.2020.04.03.00.25.36; Fri, 03 Apr 2020 00:25:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V7FdQBm3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388873AbgDCHYd (ORCPT + 99 others); Fri, 3 Apr 2020 03:24:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:40514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388121AbgDCHYd (ORCPT ); Fri, 3 Apr 2020 03:24:33 -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 49A5B206F8; Fri, 3 Apr 2020 07:24:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585898672; bh=PZzf2oNMDzLElQE0/RA3BNR6PJu62ZJBwzRvyvupSF0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V7FdQBm39SBrHISYK8LKNwYqF5v4hXkP5x1yx91z9NFVGMtAQMG50r1QLype5Xckq /BWWjto2zCDF2dJdogESnHErVX7NFAu2XljztpPscnqwWPb2MGEKCAs59LazEUj8dX weygf2rYV4G7Uq8hrqUPS4NsNqaru/+bPlJ72JJg= Date: Fri, 3 Apr 2020 09:24:30 +0200 From: Greg Kroah-Hartman To: Joe Perches Cc: "John B. Wyatt IV" , outreachy-kernel@googlegroups.com, Rob Springer , Todd Poynor , Ben Chan , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] staging: gasket: Fix 4 over 80 char warnings Message-ID: <20200403072430.GC3405737@kroah.com> References: <20200402053617.826678-1-jbwyatt4@gmail.com> <20200402053617.826678-2-jbwyatt4@gmail.com> <5d35084fcc0476fc2f43e3cf371f5078c0fbeeab.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d35084fcc0476fc2f43e3cf371f5078c0fbeeab.camel@perches.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 01, 2020 at 10:54:17PM -0700, Joe Perches wrote: > On Wed, 2020-04-01 at 22:36 -0700, John B. Wyatt IV wrote: > > Fix 4 over 80 char warnings by caching long enum values into local > > variables. > > > > All enums are only used once inside each function (and once inside > > the entire file). > > > > Reported by checkpatch. > > > > Signed-off-by: John B. Wyatt IV > > --- > > drivers/staging/gasket/apex_driver.c | 13 +++++++++---- > > 1 file changed, 9 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/staging/gasket/apex_driver.c > > index 46199c8ca441..f48209ec7d24 100644 > > --- a/drivers/staging/gasket/apex_driver.c > > +++ b/drivers/staging/gasket/apex_driver.c > > @@ -253,6 +253,8 @@ static int apex_get_status(struct gasket_dev *gasket_dev) > > /* Enter GCB reset state. */ > > static int apex_enter_reset(struct gasket_dev *gasket_dev) > > { > > + int idle_gen_reg = APEX_BAR2_REG_IDLEGENERATOR_IDLEGEN_IDLEREGISTER; > > + > > This indirection only makes the code more difficult to understand. I agree, this patch does not improve the readability of the driver at all, which should always be the primary goal of any coding style cleanup. thanks, greg k-h