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

staging: rtl8712: Remove exceptional & on function name

Remove exceptional '&' operator in front of a function name.

The Coccinelle semantic patch that is used to make this change is as
follows:

// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
@m@
type T;
identifier f;
@@
T f(...);
@@
identifier m.f;
@@
- &f
+ f
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Amitoj Kaur Chawla and committed by
Greg Kroah-Hartman
ecf2e02c fe5e5e3a

+18 -18
+5 -5
drivers/staging/rtl8712/usb_intf.c
··· 399 399 SET_NETDEV_DEV(pnetdev, &pusb_intf->dev); 400 400 pnetdev->dev.type = &wlan_type; 401 401 /* step 2. */ 402 - padapter->dvobj_init = &r8712_usb_dvobj_init; 403 - padapter->dvobj_deinit = &r8712_usb_dvobj_deinit; 404 - padapter->halpriv.hal_bus_init = &r8712_usb_hal_bus_init; 405 - padapter->dvobjpriv.inirp_init = &r8712_usb_inirp_init; 406 - padapter->dvobjpriv.inirp_deinit = &r8712_usb_inirp_deinit; 402 + padapter->dvobj_init = r8712_usb_dvobj_init; 403 + padapter->dvobj_deinit = r8712_usb_dvobj_deinit; 404 + padapter->halpriv.hal_bus_init = r8712_usb_hal_bus_init; 405 + padapter->dvobjpriv.inirp_init = r8712_usb_inirp_init; 406 + padapter->dvobjpriv.inirp_deinit = r8712_usb_inirp_deinit; 407 407 /* step 3. 408 408 * initialize the dvobj_priv 409 409 */
+13 -13
drivers/staging/rtl8712/usb_ops.c
··· 179 179 180 180 void r8712_usb_set_intf_funs(struct intf_hdl *pintf_hdl) 181 181 { 182 - pintf_hdl->intf_hdl_init = &usb_intf_hdl_init; 183 - pintf_hdl->intf_hdl_unload = &usb_intf_hdl_unload; 184 - pintf_hdl->intf_hdl_open = &usb_intf_hdl_open; 185 - pintf_hdl->intf_hdl_close = &usb_intf_hdl_close; 182 + pintf_hdl->intf_hdl_init = usb_intf_hdl_init; 183 + pintf_hdl->intf_hdl_unload = usb_intf_hdl_unload; 184 + pintf_hdl->intf_hdl_open = usb_intf_hdl_open; 185 + pintf_hdl->intf_hdl_close = usb_intf_hdl_close; 186 186 } 187 187 188 188 void r8712_usb_set_intf_ops(struct _io_ops *pops) 189 189 { 190 190 memset((u8 *)pops, 0, sizeof(struct _io_ops)); 191 - pops->_read8 = &usb_read8; 192 - pops->_read16 = &usb_read16; 193 - pops->_read32 = &usb_read32; 194 - pops->_read_port = &r8712_usb_read_port; 195 - pops->_write8 = &usb_write8; 196 - pops->_write16 = &usb_write16; 197 - pops->_write32 = &usb_write32; 198 - pops->_write_mem = &r8712_usb_write_mem; 199 - pops->_write_port = &r8712_usb_write_port; 191 + pops->_read8 = usb_read8; 192 + pops->_read16 = usb_read16; 193 + pops->_read32 = usb_read32; 194 + pops->_read_port = r8712_usb_read_port; 195 + pops->_write8 = usb_write8; 196 + pops->_write16 = usb_write16; 197 + pops->_write32 = usb_write32; 198 + pops->_write_mem = r8712_usb_write_mem; 199 + pops->_write_port = r8712_usb_write_port; 200 200 }