ide cleanups - Insert BUG() to __ide_set_handler()
PATCH 2/4 ide cleanups - Insert BUG() to __ide_set_handler()
hi,
this patch makes __ide_set_handler() BUG() if a handler is already defined. This makes place for further cleanups.
Signed-off-by Eric Sesterhenn <[email protected]>
drivers/ide/ide-iops.c renamed from drivers/ide/ide-iops.c.orig +1 -0
@@ -899,6 +899,7 @@ static void __ide_set_handler (ide_driveprintk (KERN_CRIT "%s: ide_set_handler: handler not null; " "old=%p, new=%p\n" , drive->name, hwgroup->handler, handler); +BUG (); } hwgroup->handler = handler; hwgroup->expiry = expiry;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors