[PATCH] paride_register(): shuffle return values
paride_register() returns 1 on success, 0 on failure and module init code looks like static int __init foo_init(void) { return paride_register(&foo) - 1; } which is not what one get used to. Converted to usual 0/-E convention. In case of kbic driver, unwind registration. It was just return (paride_register(&k951)||paride_register(&k971))-1; Signed-off-by:Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- drivers/block/paride/aten.c 1 addition, 1 deletiondrivers/block/paride/aten.c
- drivers/block/paride/bpck.c 1 addition, 1 deletiondrivers/block/paride/bpck.c
- drivers/block/paride/bpck6.c 1 addition, 1 deletiondrivers/block/paride/bpck6.c
- drivers/block/paride/comm.c 1 addition, 1 deletiondrivers/block/paride/comm.c
- drivers/block/paride/dstr.c 1 addition, 1 deletiondrivers/block/paride/dstr.c
- drivers/block/paride/epat.c 1 addition, 1 deletiondrivers/block/paride/epat.c
- drivers/block/paride/epia.c 1 addition, 1 deletiondrivers/block/paride/epia.c
- drivers/block/paride/fit2.c 1 addition, 1 deletiondrivers/block/paride/fit2.c
- drivers/block/paride/fit3.c 1 addition, 1 deletiondrivers/block/paride/fit3.c
- drivers/block/paride/friq.c 1 addition, 1 deletiondrivers/block/paride/friq.c
- drivers/block/paride/frpw.c 1 addition, 1 deletiondrivers/block/paride/frpw.c
- drivers/block/paride/kbic.c 9 additions, 1 deletiondrivers/block/paride/kbic.c
- drivers/block/paride/ktti.c 1 addition, 1 deletiondrivers/block/paride/ktti.c
- drivers/block/paride/on20.c 1 addition, 1 deletiondrivers/block/paride/on20.c
- drivers/block/paride/on26.c 1 addition, 1 deletiondrivers/block/paride/on26.c
- drivers/block/paride/paride.c 3 additions, 3 deletionsdrivers/block/paride/paride.c
Loading
Please register or sign in to comment