Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp105918rba; Wed, 20 Mar 2024 12:19:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVS8eWPLGTKWmQa1Y2lRLbeQQnqj+JuChnLOb/H2oTJJBtwboQnmY3PR682bsGsfsfL2LZaPMX8vg6/s9lHfWguXVbQItbzXgGqevHgqA== X-Google-Smtp-Source: AGHT+IF8NKXWocMx9sRFF4NDUqMTXTKvKI6vgfxftsGZglGYtmx+d2Il10XcbcNg2ndbmQw3SCJF X-Received: by 2002:a17:906:2b8d:b0:a46:bc3a:cc91 with SMTP id m13-20020a1709062b8d00b00a46bc3acc91mr1888417ejg.44.1710962362243; Wed, 20 Mar 2024 12:19:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710962362; cv=pass; d=google.com; s=arc-20160816; b=F6iKv5sTHUSIxdU1ZuF2882y1BvttebOlffUOOxpMsNnDJjRsvXIZOKRJkNQ39OEEm 3fWycQBL8HKnobtU1TgsnSRQnlP+plvE6Wnk6hNQWgOr8B+itmyua89ZjycHZZ563pcY hruXK9siazeugtNU373bxpZLRKPUZps25p8l7SclssjcE3+OvkddqAh18N6GuJ/kJnQO f6Iz1xA0yIYIFKU77VLseTeFLcfWKXNeGkrC7ZEYhtG6FAR6cFiD4NQrCHWbUGG4CKFH azqprk70cLKLlcx9vej8uwbcDGv9MssjvZkwWweIzDVtnwL1HbAosNTlUWHx9O9TYVL/ GpAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to :organization:message-id:date:subject:cc:to:from:dkim-signature; bh=wPajTTGO2y/8QF1q+TeEbhPvdtvl+R+UWTcys7lY9tA=; fh=eG/NYzXTQvX/cNRpOji26sl1QJxOr68F8M9tjeGpJ7Q=; b=Zy6a0TpFd2xXPiwkhsLtv/ljy2KlIRDdzlgJKSE5hE4/eXzguhHD0Vf7Z8eTzDOc22 4umMF4Jrcs/Aq2OX+L8+Ns1+f0o1BxxdnYwtIRHAzJ0IgOhxw/rXGQMLgOhU/k4mTOpg HV8szG2pjLZEEW6KYBoNV3gyC9OX6ZXdEk/octLIp+9fNdJQXXU3TdSSf0h8ev2H2izb YR2RDUuvKiVhPVLIfiLelGuGivWm2pWCAiZ5QIYGNS9W3weKVrWvRORGMuWbx/X25nYO sKUHZpsqlCQ3Dc8E3oacW1gD/AzUKsOfvwdgvzyZJshh5M5SY6WPhVeWfnBgQw8C0umY 6xZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZX98izj6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-109335-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109335-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s18-20020a170906355200b00a46ea777dbfsi1340922eja.440.2024.03.20.12.19.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 12:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109335-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZX98izj6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-109335-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109335-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E2FF21F230E5 for ; Wed, 20 Mar 2024 19:19:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3C468563D; Wed, 20 Mar 2024 19:19:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZX98izj6" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 492F18562D for ; Wed, 20 Mar 2024 19:19:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710962354; cv=none; b=Wyy8I5lBFfz9RdUkiJYzQMlwgilYH6WiuHrPTU2wpgS33HKts3Hm1Hv0jVxhU7Qkr5w7G7kqO/JJGjt0Rq+naugHFdt7UVZ88UOXuMksi7cT+dSKZopykNnEMIJ+nIFgD2gtzR55h7AWo6VjDuizpjb0Rvr+2a605WTWf7VVAYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710962354; c=relaxed/simple; bh=iPJRmEumxajKjnt+YaiVZbpw05yONRfFEwzdYYywKw0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MnTHWU41zj99/pyR8FgOzzg5QuD8FjXRg7b5AUgHmrEirBygQAwCeBtFicJ5j4n2Qv1SaIf85YNzSSA+o6ip9fJLH5cryY3I7VOPwTkbVT3h2EJHr+WIkHvRozaRz4zaHPZTJnW9TCzwg0kIdcJXPlNYkZgY/egrOTEqi7dic8w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ZX98izj6; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710962354; x=1742498354; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iPJRmEumxajKjnt+YaiVZbpw05yONRfFEwzdYYywKw0=; b=ZX98izj6k+AQXa8WhtnWZHprXx88it2YHw9hv3Xn+u+MTUeuySzIJplS ++PsaaKX1k9RDsbWktRhjJltodw2c0RNF4pK34K3OABJ2LJwwCc/LyxxG 8tnP/LR18aki6g2H7yG+R8k5a/hfqgsBLagIgLfHiTbGc5L17Dq8bCtPE 0k7FCrfnB+prHBGE1ufpI0fuJT+sR7Tt+NHbLYwQisrfjVyCUeIDlHFhA tQXG8KBHnsnHrEDThkCd6aDfHfV8wKYWb04AjuNChMOWYfzmyMUHJLSzI 3Hbk/dDa2H6qH0TvaqQBUjht3TkEUHi4gjvcdN4Wh4NazVkccc5x2Fm3J g==; X-IronPort-AV: E=McAfee;i="6600,9927,11019"; a="17051002" X-IronPort-AV: E=Sophos;i="6.07,140,1708416000"; d="scan'208";a="17051002" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 12:19:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,140,1708416000"; d="scan'208";a="14322938" Received: from fdefranc-mobl3.ger.corp.intel.com (HELO fdefranc-mobl3.localnet) ([10.213.7.127]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 12:19:10 -0700 From: "Fabio M. De Francesco" To: Ayush Tiwari Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: rtl8712: Change type of local variable Date: Wed, 20 Mar 2024 20:19:06 +0100 Message-ID: <3629769.BEx9A2HvPv@fdefranc-mobl3> Organization: intel In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Wednesday, 20 March 2024 19:53:50 CET Ayush Tiwari wrote: > Change data type of local variable blnPending from u8 to bool since it > only assumes 0 or 1 values. > > Signed-off-by: Ayush Tiwari > --- > drivers/staging/rtl8712/rtl8712_cmd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8712/rtl8712_cmd.c > b/drivers/staging/rtl8712/rtl8712_cmd.c index bb7db96ed821..32d9927981aa > 100644 > --- a/drivers/staging/rtl8712/rtl8712_cmd.c > +++ b/drivers/staging/rtl8712/rtl8712_cmd.c > @@ -284,7 +284,7 @@ int r8712_cmd_thread(void *context) > pcmd = cmd_hdl_filter(padapter, pcmd); > if (pcmd) { /* if pcmd != NULL, cmd will be handled by f/w */ > struct dvobj_priv *pdvobj = &padapter- >dvobjpriv; > - u8 blnPending = 0; > + bool blnPending = 0; bool types should take only 'true' and 'false' values. Therefore, if you change a type to 'bool' you should also convert the values it is assigned throughout its lifetime. Fabio P.S.: I just recalled that Dan has asked you to drop that 'b' prefix and do exactly what I wrote above. Are you going to ignore his comments? > u16 cmdcode = pcmd->cmdcode; > > pcmdpriv->cmd_issued_cnt++;