From: Hans Verkuil Date: Thu, 25 Aug 2011 12:43:49 +0000 (-0300) Subject: [media] wl128x: fix compiler warning + wrong write() return X-Git-Tag: v3.2-rc1~112^2~235 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb70ac1b1e457537a056cb714ccddbb1fd56f9ed;p=pandora-kernel.git [media] wl128x: fix compiler warning + wrong write() return The fix is to check for ret and return -EFAULT if non-zero. I also noticed that write() didn't return the number of bytes written. Fixed as well. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed