From a211b1af1933a3b6019d985762f5237d1d4c4213 Mon Sep 17 00:00:00 2001 From: Markus Elfring Date: Fri, 21 Nov 2014 13:42:29 +0100 Subject: [PATCH] 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-format-patch failed