From: Markus Elfring Date: Fri, 21 Nov 2014 12:42:29 +0000 (+0100) Subject: tty: Deletion of unnecessary checks before two function calls X-Git-Tag: omap-for-v3.19/fixes-rc1~86^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a211b1af1933a3b6019d985762f5237d1d4c4213;p=pandora-kernel.git tty: Deletion of unnecessary checks before two function calls The functions put_device() and tty_kref_put() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed