rtc: rx8010: prefer sizeof(*val) over sizeof(struct type_of_val)
[linux-2.6-microblaze.git] / drivers / rtc / rtc-rx8010.c
index dba7c3f..aa357f8 100644 (file)
@@ -429,7 +429,7 @@ static int rx8010_probe(struct i2c_client *client,
                return -EIO;
        }
 
-       rx8010 = devm_kzalloc(dev, sizeof(struct rx8010_data), GFP_KERNEL);
+       rx8010 = devm_kzalloc(dev, sizeof(*rx8010), GFP_KERNEL);
        if (!rx8010)
                return -ENOMEM;