Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8188eu: rename variable pnetdev -> netdev

Rename the local variable pnetdev in rtw_alloc_etherdev_with_old_priv
to avoid hungarian notation and clear the last checkpatch warning in
the file osdep_service.c.

rtl8188eu/os_dep/osdep_service.c:32: WARNING: line over 80 characters

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200210200830.22868-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Michael Straube and committed by
Greg Kroah-Hartman
36be4102 bf2b8fe0

+5 -5
+5 -5
drivers/staging/rtl8188eu/os_dep/osdep_service.c
··· 26 26 27 27 struct net_device *rtw_alloc_etherdev_with_old_priv(void *old_priv) 28 28 { 29 - struct net_device *pnetdev; 29 + struct net_device *netdev; 30 30 struct rtw_netdev_priv_indicator *pnpi; 31 31 32 - pnetdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); 33 - if (!pnetdev) 32 + netdev = alloc_etherdev_mq(sizeof(struct rtw_netdev_priv_indicator), 4); 33 + if (!netdev) 34 34 return NULL; 35 35 36 - pnpi = netdev_priv(pnetdev); 36 + pnpi = netdev_priv(netdev); 37 37 pnpi->priv = old_priv; 38 38 39 - return pnetdev; 39 + return netdev; 40 40 } 41 41 42 42 void rtw_free_netdev(struct net_device *netdev)