]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/input/touchscreen/edt-ft5x06.c
Input: edt-ft5x06 - remove redundant null check before kfree
[karo-tx-linux.git] / drivers / input / touchscreen / edt-ft5x06.c
index a9170157b4424b28f1c86073b981af298381d0e3..83fa1b15a97f4f6a7ea5a78b6ab044485a08f957 100644 (file)
@@ -440,8 +440,7 @@ static int edt_ft5x06_work_mode(struct edt_ft5x06_ts_data *tsdata)
                return -EIO;
        }
 
-       if (tsdata->raw_buffer)
-               kfree(tsdata->raw_buffer);
+       kfree(tsdata->raw_buffer);
        tsdata->raw_buffer = NULL;
 
        /* restore parameters */