lkml.org 
[lkml]   [2012]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectre: w1: Fix w1_bq27000
Hello NeilBrown,

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

The patch 9f3519d2ed26: "w1: Fix w1_bq27000" from Feb 15, 2012, leads
to the following Smatch complaint:

drivers/w1/slaves/w1_bq27000.c:48 w1_bq27000_read()
warn: variable dereferenced before check 'dev' (see line 46)

drivers/w1/slaves/w1_bq27000.c
45 u8 val;
46 struct w1_slave *sl = container_of(dev->parent, struct w1_slave, dev);
^^^^^^^^^^^
New dereference.

47
48 if (!dev)
^^^
Old check.

49 return 0;
50

regards,
dan carpenter



\
 
 \ /
  Last update: 2012-02-18 21:55    [W:0.027 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site