[PATCH] bonding: fix ->get_settings error checking
commit6a986ce45d45b099ddf676c340267765e76db91e
authorEric Sesterhenn <snakebyte@gmx.de>
Fri, 20 Jan 2006 20:30:01 +0000 (20 23:30 +0300)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 27 Jan 2006 03:08:56 +0000 (26 22:08 -0500)
tree3ba5d6ac6acf308797b5f3757724661fc37ce041
parent3ee68c4af3fd7228c1be63254b9f884614f9ebb2
[PATCH] bonding: fix ->get_settings error checking

Since get_settings() returns a signed int and it gets checked
for < 0 to catch an error, res should be a signed int too.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/bonding/bond_main.c