mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Remove wrappers for atomic operations
These wrappers were useful when this driver had the hooks for Windows, but are no longer needed. Link: https://lore.kernel.org/r/20210802192721.23110-4-Larry.Finger@lwfinger.net
This commit is contained in:
committed by
Carlos Garcés
parent
e8b235e056
commit
d7c3737cd5
@@ -79,7 +79,7 @@ static void rtw_dev_shutdown(struct device *dev)
|
||||
}
|
||||
}
|
||||
}
|
||||
ATOMIC_SET(&dvobj->continual_io_error, MAX_CONTINUAL_IO_ERR + 1);
|
||||
atomic_set(&dvobj->continual_io_error, MAX_CONTINUAL_IO_ERR + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -686,7 +686,7 @@ static void usb_dvobj_deinit(struct usb_interface *usb_intf)
|
||||
devobj_deinit(dvobj);
|
||||
}
|
||||
|
||||
/* RTW_INFO("%s %d\n", __func__, ATOMIC_READ(&usb_intf->dev.kobj.kref.refcount)); */
|
||||
/* RTW_INFO("%s %d\n", __func__, atomic_read(&usb_intf->dev.kobj.kref.refcount)); */
|
||||
usb_put_dev(interface_to_usbdev(usb_intf));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user