Re: [PATCH 3/5] esp_scsi: use strong typing for the dev field

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

 



On Fri, Oct 12, 2018 at 04:47:23PM +1100, Finn Thain wrote:
> > +	esp->dev = &dev->dev;
> >  
> >  	esp->command_block = kzalloc(16, GFP_KERNEL);
> >  	if (!esp->command_block)
> 
> 
> Isn't this missing the corresponding dev_set_drvdata() in esp_mac_probe()? 
> Also conversion to dev_get_drvdata() in esp_mac_remove()?

I don't think it matters at all, as nothing in the core esp_scsi.c
code looks into the driver data to start with, but even if it did,
platform_set_drvdata and platform_get_drvdata and just trivial wrappers
around dev_set_drvdata and dev_get_drvdata and we rely on that fact
all over the kernel.

That being said if you want them converted I can throw in another
patch at the end of the series.



[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