From: David Herrmann Date: Tue, 29 Jul 2014 15:14:18 +0000 (+0200) Subject: HID: uhid: avoid magic-numbers when setting strings X-Git-Tag: fixes-for-v3.18-merge-window~27^2^7~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25be7fe2be879a96920cc74809e1bff1b0ae0bac;p=pandora-kernel.git 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 Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed