Re: [PATCH v2] hwmon: Add support for JEDEC JC 42.4 complianttemperature sensors

From: Guenter Roeck
Date: Mon Jul 12 2010 - 19:09:26 EST


On Mon, 2010-07-12 at 18:49 -0400, Andrew Morton wrote:
> On Sun, 11 Jul 2010 07:53:04 -0700
> Guenter Roeck <guenter.roeck@xxxxxxxxxxxx> wrote:
>
> > +static int jc42_probe(struct i2c_client *new_client,
> > + const struct i2c_device_id *id)
> > +{
> > + struct jc42_data *data;
> > + int config, cap, err;
> > +
> > + data = kzalloc(sizeof(struct jc42_data), GFP_KERNEL);
> > + if (!data) {
> > + err = -ENOMEM;
> > + goto exit;
> > + }
> > +
> > + i2c_set_clientdata(new_client, data);
> > + data->valid = false;
>
> I think it would be acceptable to assume that memset(..., 0, ...) sets
> a bool to `false' ;)
>
Guess so. Wonder where I got that from. Thanks for noticing...

Guenter


--
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/