From: "Bjørn Mork" <bjorn@mork.no>
To: sreekanth.reddy@lsi.com
Cc: linux-scsi@vger.kernel.org, jejb@kernel.org,
yongjun_wei@trendmicro.com.cn, weiyj.lk@gmail.com,
Nagalakshmi.Nandigama@lsi.com
Subject: Re: [PATCH -next] [SCSI] mpt3sas: remove unused variables
Date: Mon, 17 Dec 2012 14:25:26 +0100 [thread overview]
Message-ID: <87k3sgn73t.fsf@nemi.mork.no> (raw)
In-Reply-To: <20121211205651.GA5312@localhost.localdomain> (sreekanth reddy's message of "Wed, 12 Dec 2012 02:26:51 +0530")
<sreekanth.reddy@lsi.com> writes:
> diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
> index ac9dbc2..61a1a45 100644
> --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
> +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
> @@ -2754,13 +2754,11 @@ _scsih_block_io_to_children_attached_directly(struct MPT3SAS_ADAPTER *ioc,
> int i;
> u16 handle;
> u16 reason_code;
> - u8 phy_number;
>
> for (i = 0; i < event_data->NumEntries; i++) {
> handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle);
> if (!handle)
> continue;
> - phy_number = event_data->StartPhyNum + i;
> reason_code = event_data->PHY[i].PhyStatus &
> MPI2_EVENT_SAS_TOPO_RC_MASK;
> if (reason_code == MPI2_EVENT_SAS_TOPO_RC_DELAY_NOT_RESPONDING)
There is an identical copy of this code, including that bug, in
drivers/scsi/mpt2sas/mpt2sas_scsih.c.
If you insist on the stupid code duplication, then please try to keep
your bugs syncronized! If you are going to fix this bug for the mpt3sas
driver, then you *have* to fix it for mpt2sas as well.
Yes, I believe this is a mess and you have already demonstrated that you
are incapable of managing it.
Bjørn
--
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
next prev parent reply other threads:[~2012-12-17 13:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 20:56 [PATCH -next] [SCSI] mpt3sas: remove unused variables sreekanth.reddy
2012-12-17 11:31 ` James Bottomley
2012-12-17 13:25 ` Bjørn Mork [this message]
2013-01-09 6:21 ` Nandigama, Nagalakshmi
-- strict thread matches above, loose matches on Subject: below --
2012-12-03 13:18 Wei Yongjun
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=87k3sgn73t.fsf@nemi.mork.no \
--to=bjorn@mork.no \
--cc=Nagalakshmi.Nandigama@lsi.com \
--cc=jejb@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=sreekanth.reddy@lsi.com \
--cc=weiyj.lk@gmail.com \
--cc=yongjun_wei@trendmicro.com.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.