Re: [PATCH][UPDATE] rtc: Added support for ds1672 control

From: Alessandro Zummo
Date: Tue Mar 28 2006 - 18:55:20 EST


On Tue, 28 Mar 2006 17:52:00 -0600
Kumar Gala <galak@xxxxxxxxxxxxxxxxxxx> wrote:

> >
> > shouldn't this be
> > if (err < 0)
> > return err;
>
> It could be, but doesn't need to. ds1672_get_control either returns
> 0 (success) or non-zero (-EIO) for failure.
>
> >> + /* read control register */
> >> + err = ds1672_get_control(client, &control);
> >> + if (err) {
> >> + dev_err(&client->dev, "%s: read error\n", __FUNCTION__);
> >> + goto exit_detach;
> >> + }
> >
> > ditto.
>
> ditto.

ok. will apply, thanks.


--

Best regards,

Alessandro Zummo,
Tower Technologies - Turin, Italy

http://www.towertech.it

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/