On Mon, May 8, 2017 at 9:45 PM, Dmitry Torokhov <dmitry.torok...@gmail.com> wrote:
> + /* Make sure there is something at this address */ > + error = i2c_smbus_read_byte(client); > + if (error < 0) { > + dev_dbg(&client->dev, "nothing at this address: %d\n", error); > + return -ENXIO; You could return the real error code here: 'return error'