mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 18:20:25 +02:00
HID: logitech-dj: remove unused querying_devices variable
querying_devices is never set, so it can safely be removed. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
This commit is contained in:
parent
4fcad95a24
commit
61d14de294
1 changed files with 0 additions and 5 deletions
|
|
@ -125,7 +125,6 @@ struct dj_receiver_dev {
|
||||||
struct work_struct work;
|
struct work_struct work;
|
||||||
struct kfifo notif_fifo;
|
struct kfifo notif_fifo;
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
bool querying_devices;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dj_device {
|
struct dj_device {
|
||||||
|
|
@ -653,10 +652,6 @@ static int logi_dj_recv_query_paired_devices(struct dj_receiver_dev *djrcv_dev)
|
||||||
struct dj_report *dj_report;
|
struct dj_report *dj_report;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
/* no need to protect djrcv_dev->querying_devices */
|
|
||||||
if (djrcv_dev->querying_devices)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
dj_report = kzalloc(sizeof(struct dj_report), GFP_KERNEL);
|
dj_report = kzalloc(sizeof(struct dj_report), GFP_KERNEL);
|
||||||
if (!dj_report)
|
if (!dj_report)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue