Commit
8efcc503231dd50800f874725961dfdae5f08f52
Exists in
master
and in
20 other branches
dlt-processor-sdk-linux-03.00.00.04, newt-ti-linux-3.12.y, processor-sdk-linux-01.00.00, processor-sdk-linux-02.00.01, smarc-ti-linux-3.12.10, smarc-ti-linux-3.12.y, smarc-ti-linux-3.14.y, smarc-ti-linux-3.15.y, smarc-ti-lsk-linux-4.1.y, smarct3x-processor-sdk-04.01.00.06, smarct3x-processor-sdk-linux-02.00.01, smarct3x-processor-sdk-linux-03.00.00.04, smarct4x-800-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-04.01.00.06, smarct4x-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-linux-03.00.00.04, ti-linux-3.12.y, ti-linux-3.14.y, ti-linux-3.15.y, ti-lsk-linux-4.1.y
Input: edt-ft5x06 - remove redundant null check before kfree
kfree on a null pointer is a no-op. Hence null check is not
necessary.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Showing
1 changed file
with
1 additions
and
2 deletions
Side-by-side Diff
... |
... |
@@ -440,8 +440,7 @@ |
440
|
440 |
return -EIO; |
441
|
441 |
} |
442
|
442 |
|
443
|
|
- if (tsdata->raw_buffer) |
444
|
|
- kfree(tsdata->raw_buffer); |
|
443 |
+ kfree(tsdata->raw_buffer); |
445
|
444 |
tsdata->raw_buffer = NULL; |
446
|
445 |
|
447
|
446 |
/* restore parameters */ |