NFC: trf7970a: Add NULL check to clear up smatch warning
authorMark Greer <mgreer@animalcreek.com>
Wed, 19 Aug 2015 15:58:52 +0000 (08:58 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 19 Aug 2015 17:17:45 +0000 (19:17 +0200)
commitaaee24accb9e374c04eb9672d5324160626462c5
tree30aabd85457fe9a9c9e71fb1dc8dae82394064ec
parentae291f79da57ef4cb747ae1940b37152d1a4e5cf
NFC: trf7970a: Add NULL check to clear up smatch warning

Although it should be unnecessary, add a NULL pointer check
to trf7970a_send_upstream() to eliminate a smatch warning.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c