]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/lm92.c
[PATCH] PCI: Fix VIA 686 PCI quirk names
[linux-2.6-omap-h63xx.git] / drivers / hwmon / lm92.c
index 647b7c7cd575df129ed9ed7bbb7535e2d1422232..7a4b3701ed1a5c0fec354a9739f9a92954059bc4 100644 (file)
@@ -300,11 +300,10 @@ static int lm92_detect(struct i2c_adapter *adapter, int address, int kind)
                                            | I2C_FUNC_SMBUS_WORD_DATA))
                goto exit;
 
-       if (!(data = kmalloc(sizeof(struct lm92_data), GFP_KERNEL))) {
+       if (!(data = kzalloc(sizeof(struct lm92_data), GFP_KERNEL))) {
                err = -ENOMEM;
                goto exit;
        }
-       memset(data, 0, sizeof(struct lm92_data));
 
        /* Fill in enough client fields so that we can read from the chip,
           which is required for identication */