staging: ft1000: Create common function for buffers check.
authorMarek Belisko <marek.belisko@open-nandra.com>
Thu, 3 Feb 2011 10:07:53 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 20:43:43 +0000 (12:43 -0800)
commite7af0786303cfb6c541582839275f1d0addbeb2b
treec468ae5266d690fd2775fdf9751123fecc388699
parent672dfeba92bbb1218b5e39f5aff2d1fd2e2268b8
staging: ft1000: Create common function for buffers check.

Same check was done on three places which make code unreadable.
Put repeat routine to separate function.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_download.c