HID: uhid: avoid magic-numbers when setting strings
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 29 Jul 2014 15:14:18 +0000 (17:14 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 25 Aug 2014 08:28:06 +0000 (03:28 -0500)
commit25be7fe2be879a96920cc74809e1bff1b0ae0bac
tree5aceb475e238677842f5b22fde8ce957b9932c67
parent41c4a46423c08274ef83cdbd44bbd2066cba59bb
HID: uhid: avoid magic-numbers when setting strings

Avoid hard-coding the target buffer sizes and use sizeof() instead. This
also makes us future-proof to buffer-extensions later on.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/uhid.c