]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/char/misc.c:misc_register(): do not loop on misc_list unconditionally
authorDae S. Kim <dae@velatum.com>
Wed, 20 Feb 2013 02:16:33 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:57 +0000 (16:53 +1100)
commit0447b14453fafb1dddc890f8d1f01a1a020c7e86
treefa5898b9f00183e76a994d6626e76289f52259c1
parent69148867e3601bb28061edfc7a113b4864b11e13
drivers/char/misc.c:misc_register(): do not loop on misc_list unconditionally

If the minor number is assigned dynamically, there is no need to search
for misc->minor in misc_list, since misc->minor == MISC_DYNAMIC_MINOR.

Signed-off-by: Dae S. Kim <dae@velatum.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/char/misc.c