On Thu, Oct 06, 2016 at 11:36:25PM +0530, Amitkumar Karwar wrote: > to_pci_dev() would just do struct offset arithmetic on struct > device to get 'pdev' pointer. We never get NULL pdev pointer > > Signed-off-by: Amitkumar Karwar <akarwar@xxxxxxxxxxx> > --- > New patch introduced in v3 as per inputs from Brian Norris. > v4: Same as v3 > --- > drivers/net/wireless/marvell/mwifiex/pcie.c | 22 ++++++---------------- > 1 file changed, 6 insertions(+), 16 deletions(-) Reviewed-by: Brian Norris <briannorris@xxxxxxxxxxxx>