From: "Dolev Raviv" <draviv@codeaurora.org>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>,
draviv@codeaurora.org, linux-scsi@vger.kernel.org, kbuild@01.org
Subject: Re: [SCSI] ufs: add support for query requests
Date: Tue, 7 May 2013 23:27:26 -0700 [thread overview]
Message-ID: <a68a1a1bc5658e8e61acda91340f2aa4.squirrel@www.codeaurora.org> (raw)
In-Reply-To: <1367964184.4108.27.camel@dabdike>
> On Tue, 2013-05-07 at 17:25 +0300, Dan Carpenter wrote:
>> Hello Dolev Raviv,
>>
>> This is a semi-automatic email about new static checker warnings.
>>
>> The patch 3aee47c623a3: "[SCSI] ufs: add support for query requests"
>> from May 2, 2013, leads to the following Smatch complaint:
>>
>> drivers/scsi/ufs/ufshcd.c:723 ufshcd_query_request()
>> error: we previously assumed 'hba' could be null (see line 722)
>>
>> drivers/scsi/ufs/ufshcd.c
>> 721
>> 722 if (!hba || !query || !response) {
>> ^^^^
>> New check.
>>
>> 723 dev_err(hba->dev,
>> ^^^^^^^^
>> New dereference.
>>
>> 724 "%s: NULL pointer hba = %p, query = %p response = %p\n",
>> 725 __func__, hba, query, response);
>
> We don't actually have any callers of this function either, so nothing
> ever exercises the code. Given that we're not supposed to put stuff in
> the tree without a use case anyway, I can just remove it and then it can
> be resubmitted when the function has a user.
This is fine, this patch introduce the infrastructure and the api.
I could upload the api as part of the fDeviceInit patch that was sent before.
>
> James
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
prev parent reply other threads:[~2013-05-08 6:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-07 14:25 [SCSI] ufs: add support for query requests Dan Carpenter
2013-05-07 22:03 ` James Bottomley
2013-05-08 6:27 ` Dolev Raviv [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a68a1a1bc5658e8e61acda91340f2aa4.squirrel@www.codeaurora.org \
--to=draviv@codeaurora.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=dan.carpenter@oracle.com \
--cc=kbuild@01.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox