Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3995021ybg; Fri, 25 Oct 2019 11:50:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0wHiJW2/gw5psps7zjYRd2VnAjfm/i3siVYvtk5XZ6vkV+y3k7qHZtYC28hYAhJjOKB9P X-Received: by 2002:a50:950a:: with SMTP id u10mr5764800eda.68.1572029418482; Fri, 25 Oct 2019 11:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572029418; cv=none; d=google.com; s=arc-20160816; b=KMemTPM/I4BQm1WbTflR2cKM/QnefHSwf1G0PoYFvR4jtZLPz9RtiCzmvXskaOX2CV rQcr/IptUpTK5QjOzNYY8Q7PL4P5+OHbUEaIEFO/5gUDNpKlWLQvwbC7J5AxHFD0ma1i 1ECon+91cFchoV7YQhy4sG2UMxmmiBlTnXE5L9Mz0drkxgHUMg23hFPS7ajsupCGiZe8 bLvYKBF3Xq8YzCgta/J5LwdalybNkbBDpDqNsTduLdOvdOBlozDhi4WB5S0ouqmIEqhT Fo+aIvDTzqPIBkytzRK6TBUkhC+qVRFh7FHhRLbNCftDL2lLCDFK6QwVc8GDGRo4BvpU ljqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=6pv6yVJxjSqE+XGDw69AG9mgT/MsqGxKR3hOZjY1Ub0=; b=MgjHHQ912hQK/jYVVSuMIvWVsDwTsULCu2r11/SSvXMwrYrvRV8Xnct2VQPLkwKMjI 0ABajqACQ4ZvvLvajjzSRm3nSDb+AE+QX1rSfqGn/wXzq0HgrrVHfX2AXtX7yAG9zBIG UWQU0D8LBQhPb1wOxohZ5NBxwdXBxlFsaPBKww2RN1bi+cffTAy27t638nHWGQDaF9J6 lrPjX9JefzqC+EfrqJlQWPUj53EuKpU9Gzf3XdMOqYZJiQ2qDtuZ6RFK+2RvK8Ru1kPR K3qjC4Lu4yCaNTSuJqRKHiSU72NkG7DS1rB7B1dQX6JP3yOGnk1mbdYfSK+QOAwbBar/ 7epg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=HG8N+ROI; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1713358ejx.102.2019.10.25.11.49.55; Fri, 25 Oct 2019 11:50:18 -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=@broadcom.com header.s=google header.b=HG8N+ROI; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410257AbfJXSOm (ORCPT + 99 others); Thu, 24 Oct 2019 14:14:42 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53196 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404839AbfJXSOm (ORCPT ); Thu, 24 Oct 2019 14:14:42 -0400 Received: by mail-wm1-f66.google.com with SMTP id p21so2429265wmg.2 for ; Thu, 24 Oct 2019 11:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=6pv6yVJxjSqE+XGDw69AG9mgT/MsqGxKR3hOZjY1Ub0=; b=HG8N+ROILLBfBx8GyXXl/sg3z+2bLorpdsjBgCKIgfLd/uz/CzoMvrXr2imC6ixz/r LBPzjzYbKZPVIQG3WsAHBqxsDpIZdI6CkhBfdVdi/PUTHG6ACAboOQmYNVra7VQ7gcNd EcH/2o2IYxAU8fR8nLEuMgoBkZp3RYC+DdEh0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=6pv6yVJxjSqE+XGDw69AG9mgT/MsqGxKR3hOZjY1Ub0=; b=JPBoG6P3rEZtadtL4zJnqjwzgmWTR5II3RVHAvF3QTY9snEuQDGtn6XY4rcXAZvjeT YURNBdycH63XT+e2llBXl/A5FDlTTAJPd1qGT9QLDr6spvLfWepYvf7MhkNir67Oy51K qPXj2uWrLa2dKfdohk9Yv1WLqSEacAG3fnj114a0fr2gsH6nPnCH47ZX+VCNSgREsrs3 4aiDmSStCYiQn/8oNarNh18IQ3O9xQ5ZSIS8foqOSJHC7WWqpgf728gRc39Vw1T+3pTz OGIBAq0BcjCu+ZqRw76HxoX73FMs7bGm0qvJBefqtBLW+7wxWOMk6UrBEQlEImZVkJmH Ap0A== X-Gm-Message-State: APjAAAX1kfMgqATZtP3jCR3kXYUEGVLoviCo+Gicfem9aHwOReu+KuH2 p98lnx9fk4LaGT8bHJ8r6EPpeA== X-Received: by 2002:a05:600c:21d7:: with SMTP id x23mr6027389wmj.6.1571940881004; Thu, 24 Oct 2019 11:14:41 -0700 (PDT) Received: from [10.69.45.46] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id h17sm4636995wme.6.2019.10.24.11.14.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2019 11:14:40 -0700 (PDT) Subject: Re: [PATCH] scsi: lpfc: lpfc_attr.c: Fix Use plain integer as NULL pointer To: Saurav Girepunje , dick.kennedy@broadcom.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com, Dick Kennedy References: <20191024025726.GA31421@saurav> From: James Smart Message-ID: <643cce28-6b64-0bfc-254a-52cc3efa0830@broadcom.com> Date: Thu, 24 Oct 2019 11:14:37 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191024025726.GA31421@saurav> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/23/2019 7:57 PM, Saurav Girepunje wrote: > Replace assignment of 0 to pointer with NULL assignment. > > Signed-off-by: Saurav Girepunje > --- > drivers/scsi/lpfc/lpfc_attr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c > index ea62322ffe2b..f7df95963a63 100644 > --- a/drivers/scsi/lpfc/lpfc_attr.c > +++ b/drivers/scsi/lpfc/lpfc_attr.c > @@ -1641,7 +1641,7 @@ lpfc_set_trunking(struct lpfc_hba *phba, char *buff_out) > { > LPFC_MBOXQ_t *mbox = NULL; > unsigned long val = 0; > - char *pval = 0; > + char *pval = NULL; > int rc = 0; > > if (!strncmp("enable", buff_out, thanks Reviewed-by: James Smart -- james