[media] wl128x: fix compiler warning + wrong write() return
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 25 Aug 2011 12:43:49 +0000 (09:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 6 Sep 2011 17:39:10 +0000 (14:39 -0300)
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 <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

No differences found