Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACA4BC433FE for ; Wed, 3 Nov 2021 18:04:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7EBAA61139 for ; Wed, 3 Nov 2021 18:04:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230261AbhKCSGp (ORCPT ); Wed, 3 Nov 2021 14:06:45 -0400 Received: from mga03.intel.com ([134.134.136.65]:9730 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbhKCSGn (ORCPT ); Wed, 3 Nov 2021 14:06:43 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10157"; a="231512207" X-IronPort-AV: E=Sophos;i="5.87,206,1631602800"; d="scan'208";a="231512207" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2021 11:03:56 -0700 X-IronPort-AV: E=Sophos;i="5.87,206,1631602800"; d="scan'208";a="667620843" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2021 11:03:52 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1miKbp-003Kje-6e; Wed, 03 Nov 2021 20:03:37 +0200 Date: Wed, 3 Nov 2021 20:03:36 +0200 From: Andy Shevchenko To: Bjorn Helgaas Cc: Jonas =?iso-8859-1?Q?Dre=DFler?= , Amitkumar Karwar , Ganapathi Bhat , Xinming Hu , Kalle Valo , "David S. Miller" , Jakub Kicinski , Tsuchiya Yuto , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz , Bjorn Helgaas , Pali =?iso-8859-1?Q?Roh=E1r?= Subject: Re: [PATCH v3 2/2] mwifiex: Add quirk to disable deep sleep with certain hardware revision Message-ID: References: <20211103174527.GA701082@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211103174527.GA701082@bhelgaas> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 03, 2021 at 12:45:27PM -0500, Bjorn Helgaas wrote: > On Wed, Nov 03, 2021 at 07:38:35PM +0200, Andy Shevchenko wrote: > > On Wed, Nov 03, 2021 at 06:10:55PM +0100, Jonas Dre?ler wrote: > > > > + if (mwifiex_send_cmd(priv, HostCmd_CMD_VERSION_EXT, > > > + HostCmd_ACT_GEN_GET, 0, &ver_ext, false)) { > > > + mwifiex_dbg(priv->adapter, MSG, > > > + "Checking hardware revision failed.\n"); > > > + } > > > > Checkpatch won't warn you if string literal even > 100. So move it to one line > > and drop curly braces. Ditto for the case(s) below. > > I don't understand the advantage of making this one line. I *do* > understand the advantage of joining a single string so grep can find > it more easily. But that does make the code a little bit uglier, and > in a case like this, you don't get the benefit of better grepping, so > I don't see the point. Then disregard my comment. I've no hard feelings about it :-) -- With Best Regards, Andy Shevchenko