On 10/24/13 12:53, Sachin Kamat wrote: > Remove an inconsequential print message and return directly > thereby cleaning up some code. > > Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> Applied to the toreg branch of iio.git (same comment on does anyone care about the message drop?) > --- > drivers/iio/dac/mcp4725.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/drivers/iio/dac/mcp4725.c b/drivers/iio/dac/mcp4725.c > index d982752..9f57ae8 100644 > --- a/drivers/iio/dac/mcp4725.c > +++ b/drivers/iio/dac/mcp4725.c > @@ -320,13 +320,7 @@ static int mcp4725_probe(struct i2c_client *client, > data->powerdown_mode = pd ? pd-1 : 2; /* 500kohm_to_gnd */ > data->dac_value = (inbuf[1] << 4) | (inbuf[2] >> 4); > > - err = iio_device_register(indio_dev); > - if (err) > - return err; > - > - dev_info(&client->dev, "MCP4725 DAC registered\n"); > - > - return 0; > + return iio_device_register(indio_dev); > } > > static int mcp4725_remove(struct i2c_client *client) > -- 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