From: Benjamin Tissoires Date: Wed, 5 Dec 2012 14:02:54 +0000 (+0100) Subject: HID: i2c-hid: reorder allocation/free of buffers X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~36^2^3~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29b45787d1f57f82a1c37ff5a47786c6a9dbedd8;p=pandora-kernel.git HID: i2c-hid: reorder allocation/free of buffers Simplifies i2c_hid_alloc_buffers tests, and makes this function responsible of the assignment of ihid->bufsize. The condition for the reallocation in i2c_hid_start is then simpler. Signed-off-by: Benjamin Tissoires Reviewed-by: Jean Delvare Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed