From: Hans de Goede Date: Sat, 20 Apr 2019 11:21:49 +0000 (+0200) Subject: HID: logitech-dj: remove unused querying_devices variable X-Git-Tag: for-linus-20190516~93^2^4~30 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=61d14de2948e1281b178b5b890a72e9c00979cc4;p=linux-2.6-block.git 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 Signed-off-by: Benjamin Tissoires --- diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index 628c3bd87a0d..9e5aac74808b 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c @@ -125,7 +125,6 @@ struct dj_receiver_dev { struct work_struct work; struct kfifo notif_fifo; spinlock_t lock; - bool querying_devices; }; 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; 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); if (!dj_report) return -ENOMEM;