lkml.org 
[lkml]   [2011]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 5/6] Input: elantech - clean up elantech_init
On 08/18/2011 09:57 AM, JJ Ding wrote:
> if (elantech_set_absolute_mode(psmouse)) {
> pr_err("failed to put touchpad into absolute mode.\n");
> goto init_fail;
Hi JJ,
--
diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
index e13a719..675c236 100644
--- a/drivers/input/mouse/elantech.c
+++ b/drivers/input/mouse/elantech.c
@@ -1069,7 +1069,7 @@ int elantech_init(struct psmouse *psmouse)

return 0;

- init_fail:
+init_fail:
kfree(etd);
return -1;
}
--
also has space before *init_fail*, you may do this in your next version.

Thanks
-Wanlong Gao


\
 
 \ /
  Last update: 2011-08-18 10:03    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog