Skip to content

Commit

Permalink
Input: psmouse - remove unneeded '\n' from psmouse.proto parameter
Browse files Browse the repository at this point in the history
The get parameter function should return a string without a life-feed.
Otherwise you'll see additional empty line in sysfs parameters file.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Takashi Iwai authored and Dmitry Torokhov committed Nov 13, 2009
1 parent d4119bd commit 3d4c3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/psmouse-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ static int psmouse_get_maxproto(char *buffer, struct kernel_param *kp)
{
int type = *((unsigned int *)kp->arg);

return sprintf(buffer, "%s\n", psmouse_protocol_by_type(type)->name);
return sprintf(buffer, "%s", psmouse_protocol_by_type(type)->name);
}

static int __init psmouse_init(void)
Expand Down

0 comments on commit 3d4c3aa

Please sign in to comment.