Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp476106pxb; Wed, 3 Nov 2021 07:20:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5IhPAXZtrvAUyCTKAFnwfMjsI3nybgcFCoz0F3fBoSu9SSmHjeAz0R/V+NVXeCNX+ZS8q X-Received: by 2002:a17:906:7d48:: with SMTP id l8mr46155308ejp.106.1635949216381; Wed, 03 Nov 2021 07:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635949216; cv=none; d=google.com; s=arc-20160816; b=TrbiGIC/3B5Q/WdvOWVpHBBVbZf4lPjsCMVMoa6nryHt47jcQ73QdCN5A5B+OE/U1A bkTb++if8nLa5XehrelEBau3tdZVtVEe4LKMrmboVTjyCaGqETTR+5wAUqh214qm/LKu xVTuWUPR91v9aTkXSafO2J08cHwGAV3sxF2IxAIqHjCygmFETVO/KNT1U0Zeq41Ht17i 9A0eD5DHO5lnDsFBxDfOGUThnUkfyArFxyq8D6ZtMHPkZsQNsq1VF66Q+Qtb/hlhq9OH 26MBcLPoRnxdgAJutOKmtNpmK1Ta470siB1Min9JUEZQF9qzjImPRLsnWmQeTh30Ozpm tF8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=c6hGoqIFtdJZpB2sckByvYhlauSQijLzP7TdmpOXbYw=; b=s9YhW3/iiy9mWVju9UVLzsSn8cpQ2iz7oJp/yREE1xE7WTwEWS1VMLr/tG1y7bjsNn JvSaC5C5gFOF3Ps+9038aI2WIt8g5j9IocIIF+xrJMXqy1eqI1JLdhltqRIP2+xJ99kV VAUdGZLSbikyd7A0pPJEIajnIcuxgeK/+axCTrx9DjqwFO9va9y4asLFiibkpL8hxyoH EtNhbvsSweQYkar5oDd/svG+/Kni+U5VmCNec9s8ytqVSUy//f2/fUyC8MTYuubznePZ 6xfBfcsE88UnYtxEQB77iknRzenRSC4gtc4nd78YG36jR9xr2TpabHeKbbvDlW/ouTrY UhwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si3205523edo.509.2021.11.03.07.19.37; Wed, 03 Nov 2021 07:20:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232054AbhKCOUa (ORCPT + 66 others); Wed, 3 Nov 2021 10:20:30 -0400 Received: from mga07.intel.com ([134.134.136.100]:3548 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbhKCOU3 (ORCPT ); Wed, 3 Nov 2021 10:20:29 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10156"; a="294951923" X-IronPort-AV: E=Sophos;i="5.87,206,1631602800"; d="scan'208";a="294951923" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2021 07:17:52 -0700 X-IronPort-AV: E=Sophos;i="5.87,206,1631602800"; d="scan'208";a="667537530" 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 07:17:49 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1miH53-003HSL-N2; Wed, 03 Nov 2021 16:17:33 +0200 Date: Wed, 3 Nov 2021 16:17:33 +0200 From: Andy Shevchenko To: Jonas =?iso-8859-1?Q?Dre=DFler?= Cc: 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 v2 1/2] mwifiex: Use a define for firmware version string length Message-ID: References: <20211103135529.8537-1-verdre@v0yd.nl> <20211103135529.8537-2-verdre@v0yd.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211103135529.8537-2-verdre@v0yd.nl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Nov 03, 2021 at 02:55:28PM +0100, Jonas Dre?ler wrote: > Since the version string we get from the firmware is always 128 > characters long, use a define for this size instead of having the number > 128 copied all over the place. Just answered to the previous one :-) Okay, you may ignore that thread since you did what you and I were talking about. ... > + sizeof(char) * MWIFIEX_VERSION_STR_LENGTH); While at it, drop the redundant sizeof(). -- With Best Regards, Andy Shevchenko