From: Fabian Frederick <fabf@skynet.be> Date: Wed, 9 Jul 2014 16:45:57 +0000 (-0700) Subject: Input: edt-ft5x06 - remove unnecessary null test X-Git-Tag: pci-v3.17-changes-2~25^2~1^2~55 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f69c6ec2837cf73bb8068b74edd17bfcfd7640b1;p=users%2Fdwmw2%2Flinux.git Input: edt-ft5x06 - remove unnecessary null test Fix checkpatch warning: "WARNING: debugfs_remove_recursive(NULL) is safe this check is probably not required" Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> --- diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index d4f33992ad8cf..5a6d50c004d73 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -733,8 +733,7 @@ edt_ft5x06_ts_prepare_debugfs(struct edt_ft5x06_ts_data *tsdata, static void edt_ft5x06_ts_teardown_debugfs(struct edt_ft5x06_ts_data *tsdata) { - if (tsdata->debug_dir) - debugfs_remove_recursive(tsdata->debug_dir); + debugfs_remove_recursive(tsdata->debug_dir); kfree(tsdata->raw_buffer); }