staging: ft1000: remove assigments of ret and initialise it in beginning
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 24 Nov 2012 10:01:06 +0000 (05:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:21:18 +0000 (16:21 -0800)
commitf884c19224dc190d47251031814857c652d8a563
tree77551d808c7ca45d12ea79b95330bf9ed16702ab
parent64bce09563a2a4b7614583f14a7ee55b0e083949
staging: ft1000: remove assigments of ret and initialise it in beginning

as ret is every time assigned to EINVAL in fail cases, initialise it at
the beginning.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_proc.c