projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c0c9f
)
Input: edt-ft5x06 - remove redundant null check before kfree
author
Sachin Kamat
<
[email protected]
>
Thu, 28 Mar 2013 08:14:42 +0000
(
01:14
-0700)
committer
Dmitry Torokhov
<
[email protected]
>
Sun, 31 Mar 2013 07:21:34 +0000
(
00:21
-0700)
kfree on a null pointer is a no-op. Hence null check is not
necessary.
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/edt-ft5x06.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/edt-ft5x06.c
b/drivers/input/touchscreen/edt-ft5x06.c
index a9170157b4424b28f1c86073b981af298381d0e3..83fa1b15a97f4f6a7ea5a78b6ab044485a08f957 100644
(file)
--- a/
drivers/input/touchscreen/edt-ft5x06.c
+++ b/
drivers/input/touchscreen/edt-ft5x06.c
@@
-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 */