* [PATCH] drivers:staging:gdm724x Fix Prefer kmalloc(sizeof(*gdm)...)
@ 2015-10-30 15:23 Bogicevic Sasa
0 siblings, 0 replies; only message in thread
From: Bogicevic Sasa @ 2015-10-30 15:23 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, devel, Bogicevic Sasa
This fixes Prefer kmalloc(sizeof(*gdm)...) over
kmalloc(sizeof(struct gdm)...) message from checkpatch.pl
Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
---
drivers/staging/gdm724x/gdm_tty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c
index 85206ef..d600728 100644
--- a/drivers/staging/gdm724x/gdm_tty.c
+++ b/drivers/staging/gdm724x/gdm_tty.c
@@ -225,7 +225,7 @@ int register_lte_tty_device(struct tty_dev *tty_dev, struct device *device)
int j;
for (i = 0; i < TTY_MAX_COUNT; i++) {
- gdm = kmalloc(sizeof(struct gdm), GFP_KERNEL);
+ gdm = kmalloc(sizeof(*gdm), GFP_KERNEL);
if (!gdm)
return -ENOMEM;
--
2.1.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-30 15:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-30 15:23 [PATCH] drivers:staging:gdm724x Fix Prefer kmalloc(sizeof(*gdm)...) Bogicevic Sasa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®