Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp768296ybz; Sat, 25 Apr 2020 03:58:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLFl+NRGFq9BzUrcXEHuM0EZvf/MD+MJLUW+wd7TplzGYzEEi+GTScW9AycIKRt1EMKOuxJ X-Received: by 2002:a17:907:2098:: with SMTP id pv24mr11535420ejb.22.1587812313643; Sat, 25 Apr 2020 03:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587812313; cv=none; d=google.com; s=arc-20160816; b=BCU24TNADzW2o9GkYNEUXvZ2C/+O2Yk0V/a0WiPL6Qs5VJsNGg70fvD9q6KBMNu/0o eolDWGfinRd5jpQSMSC2NPfNdiZmx0xScw9HZV1iEqIIrwYwjGyGHra/39RNLxwaHUEr TiWLWDCneQ45CpzQtsmDVMHE22dAJmzD7aRwr4gkADFT9KZ67zl9ycGP8e/dZg9uGeUC qGF0ZWLnxROAj7hhflIyFVNnSe9iXaecVKKoSE2tSW4+bYMSTsUwBz+lmYM9V7lSDMUO OwMESRd+CRxnbbqSh6C8+SB3+HfRQLkiuzwiZoQsbjBkjtEsDY6rapIOWsRVYmWjh7Y4 l/bA== 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=swm+k3+GtujYOD5/bNczkj5oJl2gyJEuMgXL7oGnso4=; b=vG+ev3ezS9OuKVh/Zf8eCsf5hmQ2VXuVGZS1wwsEDOYMegnXfgpvbBo37CdxntrAQG R+zAJmCBcgRlpy6VgVyaej0ECJtP6osT76oie57zV0gLDbsU8Nhu3OZ5Q9YgV5aR6jt3 oPCBvYs0m+zF4dqRAP1wCg/T//zWJ3KUYZZ/5Mq6IXCw49ZZPfd9OQYzdCw+xkkEwzAZ 8NOoUK/2J1YQKtrB83Y5e/qjTBL1oK6MPWj7bYIekXxu5VK6TXMiiXNlqE7jNbXURvXc DDlhhG+kCgQjB1u+GPbHXbQIO421fz8GLzd6PRdoR+hTm9pg3FGGK1SawFE/ywal+QSY ou2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nCa3PyZV; spf=pass (google.com: 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 e2si4794575edr.204.2020.04.25.03.58.09; Sat, 25 Apr 2020 03:58:33 -0700 (PDT) Received-SPF: pass (google.com: 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=nCa3PyZV; spf=pass (google.com: 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 S1726144AbgDYKyg (ORCPT + 99 others); Sat, 25 Apr 2020 06:54:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:35132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbgDYKyf (ORCPT ); Sat, 25 Apr 2020 06:54:35 -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 E9CB520714; Sat, 25 Apr 2020 10:54:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587812075; bh=XU8fusLrSTHmIUAeVbGFgNvIoVqbEQlw1d7OY9tTAvg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nCa3PyZVCeUVlmy+czbQUoSbGWp5TY6eCGW9a9RqrhOEd4i8Da8iIGz2KhysHPVIv /ArdsHI4hsE15umyFtYnPbtienLTyQBZhgquwoskmWLZBcqdJyO4EOZglxlWSoonq0 QKUsISQlJRMJwIRfIZ/ZGzWrhMdHdoMDp2XX0Ww8= Date: Sat, 25 Apr 2020 12:54:32 +0200 From: Greg KH To: Suraj Upadhyay Cc: jerome.pouiller@silabs.com, dan.carpenter@oracle.com, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] staging: wfx: cleanup long lines in data_tx.c Message-ID: <20200425105432.GA2068247@kroah.com> References: <20200424134834.GA19700@blackclown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424134834.GA19700@blackclown> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 24, 2020 at 07:18:34PM +0530, Suraj Upadhyay wrote: > Break lines with length over 80 characters to conform > to the linux coding style and refactor wherever necessary. > > Signed-off-by: Suraj Upadhyay > --- > > Changes in v3: > - Changed the temporary variable name for the memzcmp statement > to is_used. (as suggested). > - Added a temporary ieee80211_supported_band variable to address > the problem in wfx_get_hw_rate() more efficiently. (not > suggested, but still). > > Changes in v2: > - Introduced a temporary variable for the memzcmp statement. > - Addressed the checkpatch problem with wfx_get_hw_rate(). > - Restored the function definition of wfx_tx_get_tx_parms > as suggested by the reviewer. > - Added suggested changes for req->packet_id statement. > > drivers/staging/wfx/data_tx.c | 40 +++++++++++++++++++++++------------ > 1 file changed, 26 insertions(+), 14 deletions(-) > > diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c > index 9c1a91207dd8..717155975345 100644 > --- a/drivers/staging/wfx/data_tx.c > +++ b/drivers/staging/wfx/data_tx.c > @@ -20,6 +20,8 @@ > static int wfx_get_hw_rate(struct wfx_dev *wdev, > const struct ieee80211_tx_rate *rate) > { > + > + struct ieee80211_supported_band *band; > if (rate->idx < 0) checkpatch did not complain about this change? It should have... Please fix that up. thanks, greg k-h