kill ASSERT_LOCK
Subsystems (2)
PATCH 1/1 kill ASSERT_LOCK
There's just one user left, and that one is in aha152x.c and thus clearly bogus..
drivers/scsi/aha152x.c +0 -2
@@ -1379,8 +1379,6 @@*/ static int setup_expected_interrupts (struct Scsi_Host *shpnt) { -ASSERT_LOCK (&QLOCK ,1 ); -if (CURRENT_SC ) {CURRENT_SC ->SCp.phase |=1 <<16 ;
drivers/scsi/scsi.h +0 -15
@@ -87,21 +87,6 @@#endif /* -* Used for debugging the new queueing code. We want to make sure -* that the lock state is consistent with design. Only do this in -* the user space simulator. -*/ -#define ASSERT_LOCK (_LOCK, _COUNT) - -#if defined(CONFIG_SMP ) && defined(CONFIG_USER_DEBUG ) -#undef ASSERT_LOCK -#define ASSERT_LOCK (_LOCK,_COUNT) \ - { if( (_LOCK)->lock != _COUNT ) \ - panic("Lock count inconsistent %s %d\n", __FILE__, __LINE__); \ - } -#endif - -/* * Use these to separate status msg and our bytes * * These are set by: