]> asedeno.scripts.mit.edu Git - linux.git/commit
drivers: staging: vme: Fixed the using of sizeof
authorEgor Uleyskiy <egor.ulieiskii@gmail.com>
Sun, 22 Nov 2015 09:27:54 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2015 23:30:50 +0000 (15:30 -0800)
commit93a28666a9fadc56fa700e496bb549faf490f3a4
treee29852015323bb3df494a16d8caf9c0e8cba78b1
parentcad5636db7a28693dbed3268cb1ee4fe7ddaf6b4
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>
drivers/staging/vme/devices/vme_pio2_core.c
drivers/staging/vme/devices/vme_user.c