Message ID | 862e3609-1010-95d8-0d64-0493f5759f78@users.sourceforge.net (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | macintosh/rack-meter: Adjustments for rackmeter_probe() | expand |
diff --git a/drivers/macintosh/rack-meter.c b/drivers/macintosh/rack-meter.c index 0796b74174d4..800fc6822ad8 100644 --- a/drivers/macintosh/rack-meter.c +++ b/drivers/macintosh/rack-meter.c @@ -397,7 +397,7 @@ static int rackmeter_probe(struct macio_dev* mdev, } /* Create and initialize our instance data */ - rm = kzalloc(sizeof(struct rackmeter), GFP_KERNEL); + rm = kzalloc(sizeof(*rm), GFP_KERNEL); if (rm == NULL) { rc = -ENOMEM; goto bail_release;