]> git.karo-electronics.de Git - linux-beck.git/commit
staging: dgap: tty.c: removes smatch warnings "redundant null check"
authorLidza Louina <lidza.louina@gmail.com>
Mon, 23 Sep 2013 22:47:15 +0000 (18:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:18:10 +0000 (16:18 -0700)
commitfcfeef6c5144c3759f84edafd24eb4e74343c820
tree7ae3d7f57e0e241c9097777edd3c9dd6288857d3
parent913b6f8e0dccadb1189e945d7438047d59efe785
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 <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap_tty.c