linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: HID: hid-multitouch: Switch to device groups
@ 2012-08-08 13:44 Dan Carpenter
  2012-08-08 17:28 ` Henrik Rydberg
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Carpenter @ 2012-08-08 13:44 UTC (permalink / raw)
  To: rydberg; +Cc: linux-input

Hello Henrik Rydberg,

This is a semi-automatic email about new static checker warnings.

The patch 4fa3a5837b84: "HID: hid-multitouch: Switch to device 
groups" from May 1, 2012, leads to the following Smatch complaint:

drivers/hid/hid-multitouch.c:735 mt_probe()
	 error: we previously assumed 'id' could be null (see line 694)

drivers/hid/hid-multitouch.c
   693	
   694		if (id) {
                   ^^^^
Old check.

   695			for (i = 0; mt_classes[i].name ; i++) {
   696				if (id->driver_data == mt_classes[i].name) {
   697					mtclass = &(mt_classes[i]);
   698					break;
   699				}
   700			}
   701		}
   702	

[snip]

   733		mt_post_parse(td);
   734	
   735		if (id->vendor == HID_ANY_ID && id->product == HID_ANY_ID)
                    ^^^^^^^^^^
New dereference removed a check.

   736			mt_post_parse_default_settings(td);
   737	

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-15  8:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-08 13:44 HID: hid-multitouch: Switch to device groups Dan Carpenter
2012-08-08 17:28 ` Henrik Rydberg
2012-08-08 18:07   ` Dan Carpenter
2012-08-08 19:54     ` Henrik Rydberg
2012-08-15  8:38       ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).