Re: [PATCH] zfcp: convert zfcp to use target reset and device reset handler

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

 



On Mon, Mar 03, 2008 at 10:40:10AM +0000, Russell King wrote:
> On Mon, Mar 03, 2008 at 11:19:46AM +0100, Christof Schmitt wrote:
> > +static int zfcp_scsi_eh_target_reset_handler(struct scsi_cmnd *scpnt)
> > +{
> > +	int retval;
> > +	struct zfcp_unit *unit = (struct zfcp_unit *) scpnt->device->hostdata;
> 
> Randomly spotted item.  Isn't hostdata of type void *?
> 
>         void *hostdata;         /* available to low-level driver */
> 
> in which case, isn't that cast, which is being added, redundant?

True. The cast was there before, but only in the device_reset_handler.
When touching the code now, we can as well remove it.

--
Christof Schmitt
--
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