projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24f40be
)
touch: removed sonar violation
author
giwoong.kim
<giwoong.kim@samsung.com>
Wed, 26 Dec 2012 01:24:37 +0000
(10:24 +0900)
committer
giwoong.kim
<giwoong.kim@samsung.com>
Wed, 26 Dec 2012 01:26:57 +0000
(10:26 +0900)
it is redundant to check it against null
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
drivers/maru/maru_usb_touchscreen.c
patch
|
blob
|
history
diff --git
a/drivers/maru/maru_usb_touchscreen.c
b/drivers/maru/maru_usb_touchscreen.c
index 7f88794858a7991e66bb48a5a1865d180783627f..578fdc645d40bfd6c0b974142cf012af041da23d 100644
(file)
--- a/
drivers/maru/maru_usb_touchscreen.c
+++ b/
drivers/maru/maru_usb_touchscreen.c
@@
-186,11
+186,13
@@
static int emul_touchscreen_probe(struct usb_interface *intf, const struct usb_d
printk(KERN_INFO "usb touchscreen driver is probed\n");
usb_ts = kzalloc(sizeof(struct emul_touchscreen), GFP_KERNEL);
+#if 0
if (!usb_ts) {
input_free_device(usb_ts->emuldev);
kfree(usb_ts);
return error;
}
+#endif
usb_ts->usbdev = interface_to_usbdev(intf);
usb_ts->data = usb_alloc_coherent(usb_ts->usbdev,