All of lore.kernel.org
 help / color / mirror / Atom feed
* re: NFC: Add Intel Fields Peak NFC solution driver
@ 2015-11-03 12:41 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2015-11-03 12:41 UTC (permalink / raw)
  To: robert.dolca; +Cc: linux-wireless

Hello Robert Dolca,

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

The patch a06347c04c13: "NFC: Add Intel Fields Peak NFC solution 
driver" from Oct 22, 2015, leads to the following Smatch complaint:

drivers/nfc/fdp/i2c.c:216 fdp_nci_i2c_irq_thread_fn()
	 warn: variable dereferenced before check 'phy' (see line 213)

drivers/nfc/fdp/i2c.c
   212	
   213		client = phy->i2c_dev;
                         ^^^^^
Dereference.

   214		dev_dbg(&client->dev, "%s\n", __func__);
   215	
   216		if (!phy || irq != phy->i2c_dev->irq) {
                    ^^^^
Check.

   217			WARN_ON_ONCE(1);
   218			return IRQ_NONE;

regards,
dan carpenter

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-03 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 12:41 NFC: Add Intel Fields Peak NFC solution driver Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.