From: Lidza Louina Date: Mon, 23 Sep 2013 22:47:15 +0000 (-0400) Subject: staging: dgap: tty.c: removes smatch warnings "redundant null check" X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~648 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcfeef6c5144c3759f84edafd24eb4e74343c820;p=pandora-kernel.git staging: dgap: tty.c: removes smatch warnings "redundant null check" This patch removes these smatch warnings: redundant null check on dgap_TmpWriteBuf calling kfree() redundant null check on brd->SerialDriver->ttys calling kfree() redundant null check on brd->PrintDriver->ttys calling kfree() The code checked to see if these variables are null before freeing. This check isn't needed. Signed-off-by: Lidza Louina Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed