diff options
author | Egor Uleyskiy <egor.ulieiskii@gmail.com> | 2015-11-22 11:27:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-11-24 15:30:50 -0800 |
commit | 93a28666a9fadc56fa700e496bb549faf490f3a4 (patch) | |
tree | e29852015323bb3df494a16d8caf9c0e8cba78b1 /drivers/staging/vme/devices/vme_pio2_core.c | |
parent | cad5636db7a28693dbed3268cb1ee4fe7ddaf6b4 (diff) |
drivers: staging: vme: Fixed the using of sizeof
Constructions that looks like
card = kzalloc(sizeof(struct pio2_card), GFP_KERNEL);
are changed to
card = kzalloc(sizeof(*card), GFP_KERNEL);
Signed-off-by: Egor Uleyskiy <egor.ulieiskii@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vme/devices/vme_pio2_core.c')
-rw-r--r-- | drivers/staging/vme/devices/vme_pio2_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vme/devices/vme_pio2_core.c b/drivers/staging/vme/devices/vme_pio2_core.c index f3b878b441ee..a30282a57b6b 100644 --- a/drivers/staging/vme/devices/vme_pio2_core.c +++ b/drivers/staging/vme/devices/vme_pio2_core.c @@ -215,7 +215,7 @@ static int pio2_probe(struct vme_dev *vdev) u8 reg; int vec; - card = kzalloc(sizeof(struct pio2_card), GFP_KERNEL); + card = kzalloc(sizeof(*card), GFP_KERNEL); if (!card) { retval = -ENOMEM; goto err_struct; |