diff options
author | 2009-06-17 16:27:48 -0700 | |
---|---|---|
committer | 2009-06-18 13:03:54 -0700 | |
commit | d6f47befdd7483cd1e14a7ae76ef22f7f9722c90 (patch) | |
tree | 77ea51c4a4ffc513d8d5a3a6f09f66234eea85ea /kernel | |
parent | ipc: use __ARCH_WANT_IPC_PARSE_VERSION in ipc/util.h (diff) | |
download | wireguard-linux-d6f47befdd7483cd1e14a7ae76ef22f7f9722c90.tar.xz wireguard-linux-d6f47befdd7483cd1e14a7ae76ef22f7f9722c90.zip |
drivers/char/mem.c: memory_open() cleanup: lookup minor device number from devlist
memory_open() ignores devlist and does a switch for each item, duplicating
code and conditional definitions.
Clean it up by adding backing_dev_info to devlist and use it to lookup for
the minor device.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Adriano dos Santos Fernandes <adrianosf@uol.com.br>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions