net/s2io: set_rxd_buffer_pointer returns -ENOMEM, not ENOMEM
authorMarcin Slusarz <[email protected]>
Wed, 14 May 2008 23:20:17 +0000 (16:20 -0700)
committerJeff Garzik <[email protected]>
Sat, 31 May 2008 02:19:19 +0000 (22:19 -0400)
Signed-off-by: Marcin Slusarz <[email protected]>
Cc: Ramkrishna Vepa <[email protected]>
Cc: Rastapur Santosh <[email protected]>
Cc: Sivakumar Subramani <[email protected]>
Cc: Sreenivasa Honnur <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
drivers/net/s2io.c

index 326c94122b26ec467fdd049f12228aee943ad4f8..dcc953e57ab180b53ae47d9f5b114cf0e209c832 100644 (file)
@@ -6997,7 +6997,7 @@ static  int rxd_owner_bit_reset(struct s2io_nic *sp)
                                                       &skb,(u64 *)&temp0_64,
                                                       (u64 *)&temp1_64,
                                                       (u64 *)&temp2_64,
-                                                       size) == ENOMEM) {
+                                                       size) == -ENOMEM) {
                                        return 0;
                                }