diff options
author | Dae S. Kim <dae@velatum.com> | 2013-02-28 01:05:14 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-28 03:10:21 (GMT) |
commit | 3c94ce6f48f484bbc4dba83c0ed1f98f5e10957c (patch) | |
tree | 0c475e8b2ab3a9e5b3e70f0a4dcd12f7ac46d514 /arch/cris/arch-v10 | |
parent | f2afae4629d74287aaac39d0532aac5819e77e70 (diff) | |
download | linux-fsl-qoriq-3c94ce6f48f484bbc4dba83c0ed1f98f5e10957c.tar.xz |
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.
[akpm@linux-foundation.org: reduce scope of local `c']
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/cris/arch-v10')
0 files changed, 0 insertions, 0 deletions