[bug report] iio: adxl345: Add support for the ADXL375

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Lars-Peter Clausen,

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

The patch ef89f4b96a2a: "iio: adxl345: Add support for the ADXL375" 
from Jul 13, 2018, leads to the following Smatch complaint:

    ./drivers/iio/accel/adxl345_i2c.c:38 adxl345_i2c_probe()
     warn: variable dereferenced before check 'id' (see line 37)

./drivers/iio/accel/adxl345_i2c.c
    36	
    37		return adxl345_core_probe(&client->dev, regmap, id->driver_data,
                                                                ^^^^^^^^^^^^^^^
Unchecked dereference

    38					  id ? id->name : NULL);
                                          ^^^^^^^^^^^^^^^^^^^^
Check not needed?

    39	}
    40	

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux