commit | 3c94ce6f48f484bbc4dba83c0ed1f98f5e10957c | [log] [tgz] |
---|---|---|
author | Dae S. Kim <[email protected]> | Wed Feb 27 17:05:14 2013 -0800 |
committer | Linus Torvalds <[email protected]> | Wed Feb 27 19:10:21 2013 -0800 |
tree | 0c475e8b2ab3a9e5b3e70f0a4dcd12f7ac46d514 | |
parent | f2afae4629d74287aaac39d0532aac5819e77e70 [diff] |
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. [[email protected]: reduce scope of local `c'] Signed-off-by: Dae S. Kim <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>