]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: speakup: Use sizeof(*var) in kmalloc().
authorSam Muhammed <jane.pnx9@gmail.com>
Tue, 24 Mar 2020 10:45:48 +0000 (06:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Mar 2020 11:36:55 +0000 (12:36 +0100)
commit64b9e0d53ed64e3da26ba392178cff7d4fa5bda1
tree6a7145b804f98a61036e51c2ec60b453383b7df7
parentfcce94d6ef1c70ca37aabc0773edd100183f8021
Staging: speakup: Use sizeof(*var) in kmalloc().

Modifying struct allocation in kmalloc() to match the
coding standards.

Checkpatch.pl CHECK: Prefer kmalloc(sizeof(*ldisc_data)...)
over kmalloc(sizeof(struct spk_ldisc_data)...)

Signed-off-by: Sam Muhammed <jane.pnx9@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/19494bdab5709693126e0c0ee14b179a3b601207.1585046066.git.jane.pnx9@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/spk_ttyio.c