Skip to content

Commit

Permalink
fs/char_dev.c: remove pointless assignment from __register_chrdev_reg…
Browse files Browse the repository at this point in the history
…ion()

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 <[email protected]>
Cc: Alexander Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jankara authored and torvalds committed Dec 11, 2014
1 parent b3e3e5a commit e2ab879
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ __register_chrdev_region(unsigned int major, unsigned int baseminor,
goto out;
}
major = i;
ret = major;
}

cd->major = major;
Expand Down

0 comments on commit e2ab879

Please sign in to comment.