summaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-12-10 15:42:10 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-10 17:41:04 -0800
commite2ab879e96b5e65bf8ce1123f3b7f01ebba27204 (patch)
tree3e6cf53bad0c170e1bb9b72435c68ba9edaa24cf /fs/char_dev.c
parentb3e3e5af60e0fda182e978f568cc512568c024cf (diff)
downloadlinux-0-day-e2ab879e96b5e65bf8ce1123f3b7f01ebba27204.tar.gz
linux-0-day-e2ab879e96b5e65bf8ce1123f3b7f01ebba27204.tar.xz
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>
Diffstat (limited to 'fs/char_dev.c')
-rw-r--r--fs/char_dev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c
index f77f7702fabe1..67b2007f10fe6 100644
--- a/fs/char_dev.c
+++ b/fs/char_dev.c
@@ -117,7 +117,6 @@ __register_chrdev_region(unsigned int major, unsigned int baseminor,
goto out;
}
major = i;
- ret = major;
}
cd->major = major;