ip2: init/deinit cleanup
Cleanup of module_init/exit: - mostly whitespace - remove empty functions - replace c++ comments - remove useless prints (module loaded, unloaded) - mark the calls as __exit and __init - use break; and return; to save some indent levels after it - note resource leakage It's still mess, but now it's readable. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

کامیت شده توسط
Linus Torvalds

والد
7ccd7020ef
کامیت
f1ddfd9502
@@ -68,38 +68,6 @@ static DEFINE_RWLOCK(Dl_spinlock);
|
||||
// iiInitialize
|
||||
//=======================================================
|
||||
|
||||
//******************************************************************************
|
||||
// Function: iiEllisInit()
|
||||
// Parameters: None
|
||||
//
|
||||
// Returns: Nothing
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// This routine performs any required initialization of the iiEllis subsystem.
|
||||
//
|
||||
//******************************************************************************
|
||||
static void
|
||||
iiEllisInit(void)
|
||||
{
|
||||
}
|
||||
|
||||
//******************************************************************************
|
||||
// Function: iiEllisCleanup()
|
||||
// Parameters: None
|
||||
//
|
||||
// Returns: Nothing
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// This routine performs any required cleanup of the iiEllis subsystem.
|
||||
//
|
||||
//******************************************************************************
|
||||
static void
|
||||
iiEllisCleanup(void)
|
||||
{
|
||||
}
|
||||
|
||||
//******************************************************************************
|
||||
// Function: iiSetAddress(pB, address, delay)
|
||||
// Parameters: pB - pointer to the board structure
|
||||
|
مرجع در شماره جدید
Block a user