mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
fs/char_dev.c: remove pointless assignment from __register_chrdev_region()
At one place we assign major number we found to ret. That assignment is then never used and actually doesn't make any sense given how the code is currently structured (the assignment comes from pre-git times). Just remove it. Coverity id: 1226852. Signed-off-by: Jan Kara <jack@suse.cz> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b3e3e5af60
commit
e2ab879e96
1 changed files with 0 additions and 1 deletions
|
@ -117,7 +117,6 @@ __register_chrdev_region(unsigned int major, unsigned int baseminor,
|
|||
goto out;
|
||||
}
|
||||
major = i;
|
||||
ret = major;
|
||||
}
|
||||
|
||||
cd->major = major;
|
||||
|
|
Loading…
Add table
Reference in a new issue