[PATCH] profiles/hog: Remove dead code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



warning: Value stored to 'attrib' is never read
		attrib = report->hogdev->attrib;
		^        ~~~~~~~~~~~~~~~~~~~~~~
---
 profiles/input/hog.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index fb51663..74351f3 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
@@ -221,7 +221,6 @@ static void discover_descriptor_cb(uint8_t status, GSList *descs,
 		switch (desc->uuid16) {
 		case GATT_CLIENT_CHARAC_CFG_UUID:
 			report = user_data;
-			attrib = report->hogdev->attrib;
 			write_ccc(desc->handle, report);
 			break;
 		case GATT_REPORT_REFERENCE:
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux