Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363436
b: refs/heads/master
c: 8dd4a96
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Mar 12, 2013
1 parent 104bb22 commit 324c7ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f165d815d50f158be43aa12c5c800fd27bbecad3
refs/heads/master: 8dd4a9665280eafc042d6420f6a21bf0d20c19d9
4 changes: 2 additions & 2 deletions trunk/drivers/staging/et131x/et131x.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static int eeprom_write(struct et131x_adapter *adapter, u32 addr, u8 data)
*/

err = eeprom_wait_ready(pdev, NULL);
if (err)
if (err < 0)
return err;

/* 2. Write to the LBCIF Control Register: bit 7=1, bit 6=1, bit 3=0,
Expand Down Expand Up @@ -709,7 +709,7 @@ static int eeprom_read(struct et131x_adapter *adapter, u32 addr, u8 *pdata)
*/

err = eeprom_wait_ready(pdev, NULL);
if (err)
if (err < 0)
return err;
/* Write to the LBCIF Control Register: bit 7=1, bit 6=0, bit 3=0,
* and bits 1:0 both =0. Bit 5 should be set according to the type
Expand Down

0 comments on commit 324c7ca

Please sign in to comment.