Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/video/console/softcursor.c: remove redundant NULL check before kfree()

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Sachin Kamat and committed by
Tomi Valkeinen
a240af2e a2ed00da

+1 -2
+1 -2
drivers/video/console/softcursor.c
··· 35 35 dsize = s_pitch * cursor->image.height; 36 36 37 37 if (dsize + sizeof(struct fb_image) != ops->cursor_size) { 38 - if (ops->cursor_src != NULL) 39 - kfree(ops->cursor_src); 38 + kfree(ops->cursor_src); 40 39 ops->cursor_size = dsize + sizeof(struct fb_image); 41 40 42 41 ops->cursor_src = kmalloc(ops->cursor_size, GFP_ATOMIC);