diff options
author | Dan Carpenter <error27@gmail.com> | 2011-08-18 09:42:26 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-08-23 04:43:43 -0400 |
commit | 2bbaf771eb69f7fd333c4708fd76f94a3bdaf207 (patch) | |
tree | 503ba24e94ff817b817ef4ff29e54d468ba360cd /drivers/hid/hid-lg4ff.c | |
parent | 70c2cabd6ab6616490c7920ade9fd4143e539884 (diff) |
HID: hid-lg4ff: silence sparse complaint
Sparse complains that:
drivers/hid/hid-lg4ff.c:288:44: warning: Using plain integer as NULL pointer
drivers/hid/hid-lg4ff.c:311:44: warning: Using plain integer as NULL pointer
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg4ff.c')
-rw-r--r-- | drivers/hid/hid-lg4ff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index dc38c2d89df1..2d8762d4f32a 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c | |||
@@ -285,7 +285,7 @@ static void hid_lg4ff_switch_native(struct hid_device *hid, const struct lg4ff_n | |||
285 | /* Read current range and display it in terminal */ | 285 | /* Read current range and display it in terminal */ |
286 | static ssize_t lg4ff_range_show(struct device *dev, struct device_attribute *attr, char *buf) | 286 | static ssize_t lg4ff_range_show(struct device *dev, struct device_attribute *attr, char *buf) |
287 | { | 287 | { |
288 | struct lg4ff_device_entry *entry = 0; | 288 | struct lg4ff_device_entry *uninitialized_var(entry); |
289 | struct list_head *h; | 289 | struct list_head *h; |
290 | struct hid_device *hid = to_hid_device(dev); | 290 | struct hid_device *hid = to_hid_device(dev); |
291 | size_t count; | 291 | size_t count; |
@@ -308,7 +308,7 @@ static ssize_t lg4ff_range_show(struct device *dev, struct device_attribute *att | |||
308 | * according to the type of the wheel */ | 308 | * according to the type of the wheel */ |
309 | static ssize_t lg4ff_range_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 309 | static ssize_t lg4ff_range_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
310 | { | 310 | { |
311 | struct lg4ff_device_entry *entry = 0; | 311 | struct lg4ff_device_entry *uninitialized_var(entry); |
312 | struct list_head *h; | 312 | struct list_head *h; |
313 | struct hid_device *hid = to_hid_device(dev); | 313 | struct hid_device *hid = to_hid_device(dev); |
314 | __u16 range = simple_strtoul(buf, NULL, 10); | 314 | __u16 range = simple_strtoul(buf, NULL, 10); |