From fcfeef6c5144c3759f84edafd24eb4e74343c820 Mon Sep 17 00:00:00 2001 From: Lidza Louina Date: Mon, 23 Sep 2013 18:47:15 -0400 Subject: [PATCH] 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-format-patch failed