Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3995135ybg; Fri, 25 Oct 2019 11:50:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx59+H00H7v4obpupIDJS78HWr9moy9Z6QZZVC5VlZcy50BWMvklv8QrcTGdYSwMKRAnGn6 X-Received: by 2002:aa7:c48c:: with SMTP id m12mr5751544edq.152.1572029424042; Fri, 25 Oct 2019 11:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572029424; cv=none; d=google.com; s=arc-20160816; b=0LUyID88P6fcYuafNwc3qwQzl1WCPZA0+FE0qRTBUvN+QaCHIRBNs0u9Re5+hERNIR L52VSLJ/rYGpqbWia7Gs5jqVwCzKoxeXTlk9NE9tT0ho0zfyMG4/tWcQqatAQOyetTeZ 7V7q78P07tQAKBuhR9fIOP0RLXh/hhNxwReiwmDWmZcZ6C2AxDcnvV604Ywqf7s0BDml 38xbBY7XbI8i/vV838Sq+jRlY1dE56r4RBwm+PcxDirI46vYNdt08hah60aqG7HNeelU /WZ87BjyZTUKORE6qw4KxsMUTIgUKUkhpnbxdlCxi1/OAoXsyB3RxbdfAREcqZT8Xdfk izmA== 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=J2ir4XLA19BNjmSyUtsG7BoFC3h+5yshsn0Pcu0yv9s=; b=Yr+ziIbB46IQNHUWJd63M5YN0PpzbiY6t/pOlSjhTxtLIJn4QL8u5gJLM9XqSSVRXG OdH3PH84QBynyVWB3MjbJwxvJUotEmX1P0L332lQwy38P/WaCwXEdZzPnmPZUVspXsk6 iIEuHvKBVKpwK/adq4AF0Ctr/1nIoFb8zThaRmdCvDfZlZWAwel7/gB7nwHBrQEjNkOK vv0AXqu1aA7cOBGe9OIomiustZJ0srd96vrZYM9gXXIyRzIc1Pgd+3trw1HwznuJFzDR +4TyGgE7GOnC/m6D+d5W5j4RlS5mh0X/hd4jFabk95UayPW/TotgmuO2CmOLrTw2P9xK 58iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=cFmQQmfl; 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 j15si746613eja.168.2019.10.25.11.50.01; Fri, 25 Oct 2019 11:50:24 -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=cFmQQmfl; 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 S2440063AbfJXSPg (ORCPT + 99 others); Thu, 24 Oct 2019 14:15:36 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36026 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404839AbfJXSPf (ORCPT ); Thu, 24 Oct 2019 14:15:35 -0400 Received: by mail-wr1-f68.google.com with SMTP id w18so26597716wrt.3 for ; Thu, 24 Oct 2019 11:15:34 -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=J2ir4XLA19BNjmSyUtsG7BoFC3h+5yshsn0Pcu0yv9s=; b=cFmQQmflpmhWqyGTh8Xwv4h3dqDANp/ERbzTV8iFVRmpZnjl2ZfcmBXbDFpSEKLcuj 7Kao2lLXFHNA/kztMlJghYNUCGzKUwW0AqH/BCf1aWkFxJOhSa/tRMwGjYS7ydpgm70R 23CAgIZgW7kH4aZR00iqNWeD9ICZ7uXD5IeWc= 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=J2ir4XLA19BNjmSyUtsG7BoFC3h+5yshsn0Pcu0yv9s=; b=IpaZEnviy0UNlL7Jlp6Y/T6F2ILmUidkC1SAUBLAej7bgmGFts9uRgZv4XlX7VXvdo BXEbwg/MXuH1Mmck4Qn1mr+Msw1og03LbP1HFzgEjV4uOy6Jyo1bDfwTYyyPl9q4zKVU 8BI+KbQL4cBov623k/zDhRxjEFu/F6xM8pBJyt6ja3mBArRRF3GkevHwZta/iOJsS3or PLhrOUUqYIqUvi/UVATguTpUxya03x0aDTkANGJEu2dd51I3eafG2fnGm/yTHsTVwjlB bNDgz2dsI8z4HKuMBL9DPaeGK2mBqDMqRknhQpdZtHtkhf/pSC3MFME/PNQQfmxcEY6b 2lZA== X-Gm-Message-State: APjAAAVJUHgBftlrDeOLtIaHh3JRZ+e9UOdT3PfAj3ecxsvQ4k/JLYnU R3uLm2/C53xkLBOSobhOt9kt9Co2S/Q= X-Received: by 2002:adf:f54c:: with SMTP id j12mr4255462wrp.182.1571940933431; Thu, 24 Oct 2019 11:15:33 -0700 (PDT) Received: from [10.69.45.46] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id d199sm3602260wmd.35.2019.10.24.11.15.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2019 11:15:32 -0700 (PDT) Subject: Re: [PATCH] scsi: lpfc: lpfc_nvmet.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 References: <20191024030857.GA12097@saurav> From: James Smart Message-ID: Date: Thu, 24 Oct 2019 11:15:30 -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: <20191024030857.GA12097@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 8:09 PM, Saurav Girepunje wrote: > Replace assignment of 0 to pointer with NULL assignment. > > Signed-off-by: Saurav Girepunje > --- > drivers/scsi/lpfc/lpfc_nvmet.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c > index faa596f9e861..f6ebfe05224c 100644 > --- a/drivers/scsi/lpfc/lpfc_nvmet.c > +++ b/drivers/scsi/lpfc/lpfc_nvmet.c > @@ -3364,7 +3364,7 @@ lpfc_nvmet_sol_fcp_issue_abort(struct lpfc_hba *phba, > /* ABTS WQE must go to the same WQ as the WQE to be aborted */ > abts_wqeq->hba_wqidx = ctxp->wqeq->hba_wqidx; > abts_wqeq->wqe_cmpl = lpfc_nvmet_sol_fcp_abort_cmp; > - abts_wqeq->iocb_cmpl = 0; > + abts_wqeq->iocb_cmpl = NULL; > abts_wqeq->iocb_flag |= LPFC_IO_NVME; > abts_wqeq->context2 = ctxp; > abts_wqeq->vport = phba->pport; > @@ -3499,7 +3499,7 @@ lpfc_nvmet_unsol_ls_issue_abort(struct lpfc_hba *phba, > > spin_lock_irqsave(&phba->hbalock, flags); > abts_wqeq->wqe_cmpl = lpfc_nvmet_xmt_ls_abort_cmp; > - abts_wqeq->iocb_cmpl = 0; > + abts_wqeq->iocb_cmpl = NULL; > abts_wqeq->iocb_flag |= LPFC_IO_NVME_LS; > rc = lpfc_sli4_issue_wqe(phba, ctxp->hdwq, abts_wqeq); > spin_unlock_irqrestore(&phba->hbalock, flags); Thanks Reviewed-by: James Smart -- james