Re: [PATCH (trivial) 2/2] SCSI: simplify scsi_remove_target()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2010-12-22 at 12:21 +0100, Jiri Kosina wrote:
> On Mon, 15 Nov 2010, Alan Stern wrote:
> 
> > This trivial patch (as1340) eliminates an unnecessary local variable
> > from scsi_remove_target().
> > 
> > Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> > 
> > ---
> > 
> > Index: usb-2.6/drivers/scsi/scsi_sysfs.c
> > ===================================================================
> > --- usb-2.6.orig/drivers/scsi/scsi_sysfs.c
> > +++ usb-2.6/drivers/scsi/scsi_sysfs.c
> > @@ -1020,16 +1020,14 @@ static int __remove_child (struct device
> >   */
> >  void scsi_remove_target(struct device *dev)
> >  {
> > -	struct device *rdev;
> > -
> >  	if (scsi_is_target_device(dev)) {
> >  		__scsi_remove_target(to_scsi_target(dev));
> >  		return;
> >  	}
> >  
> > -	rdev = get_device(dev);
> > +	get_device(dev);
> >  	device_for_each_child(dev, NULL, __remove_child);
> > -	put_device(rdev);
> > +	put_device(dev);
> >  }
> >  EXPORT_SYMBOL(scsi_remove_target);
> 
> The code seems to be reshuffled a little bit in -next, so this'd better go 
> through SCSI tree to avoid unnecessary conflicts between trees in next.
> 
> James, are you going to pick it up?

I've got it in my queue ... it depends how much more trouble we get
integrating driver patches (and the tightness of the merge window
deadline, since some people suspect a christmas release).

James


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux