]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: dgrp: remove redundant NULL check before unregister_dgrp_device().
authorCyril Roelandt <tipecaml@gmail.com>
Tue, 12 Feb 2013 04:01:51 +0000 (05:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Feb 2013 16:46:48 +0000 (08:46 -0800)
commitae87d63664721c9022ad709077de82b02b8227ca
tree5583e9e165a0b9e59b5004f2300d83c3a5604017
parent76426daf50d5df38893cc189e9ccd026093debc8
staging: dgrp: remove redundant NULL check before unregister_dgrp_device().

unregister_dgrp_device on a NULL pointer is a no-op, so the NULL checks in
dgrp_remove_nd() can be removed.

Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgrp/dgrp_specproc.c