public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Smart <James.Smart@Emulex.Com>
To: Adrian Bunk <bunk@kernel.org>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
	linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: scsi/lpfc/lpfc_attr.c: bogus code
Date: Wed, 12 Dec 2007 17:00:29 -0500	[thread overview]
Message-ID: <476059FD.2070300@emulex.com> (raw)
In-Reply-To: <20071211222055.GE14204@stusta.de>

This has already been fixed. It's in our 8.2.3 patches, which were merged into
James's scsi-misc-2.6 tree at the beginning of November, and targeted for 2.6.25.

-- james s


Adrian Bunk wrote:
> Commit 2e0fef85e098f6794956b8b80b111179fbb4cbb7 added the folowing code 
> to drivers/scsi/lpfc/lpfc_attr.c that was most likely not intended to be 
> dead code:
> 
> <--  snip  -->
> 
> ...
> lpfc_state_show(struct class_device *cdev, char *buf)
> {
> ...
>                 switch (vport->port_state) {
>                         len += snprintf(buf + len, PAGE_SIZE-len,
>                                         "initializing\n");
>                         break;
> ...
> 
> <--  snip  -->
> 
> Spotted by the GNU C compiler version 3.3.
> 
> cu
> Adrian
> 

      reply	other threads:[~2007-12-12 22:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-11 22:20 scsi/lpfc/lpfc_attr.c: bogus code Adrian Bunk
2007-12-12 22:00 ` James Smart [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=476059FD.2070300@emulex.com \
    --to=james.smart@emulex.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=bunk@kernel.org \
    --cc=linux-kernel@vger.kernel.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