staging: et131x: fix invalid fail after the call to eeprom_wait_ready
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 12 Mar 2013 05:34:45 +0000 (01:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Mar 2013 16:09:08 +0000 (09:09 -0700)
commit8dd4a9665280eafc042d6420f6a21bf0d20c19d9
treeb35d321a7a59d73b89872f731d3da43235b92e03
parentf165d815d50f158be43aa12c5c800fd27bbecad3
staging: et131x: fix invalid fail after the call to eeprom_wait_ready

should be err < 0 instead of if (err) which actually the read register
value can be a positive number

Acked-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c