master - cleanup: drop test for optarg NULL
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1d774e56670cd8b9d753a8f8a98a3d258e9ee912 Commit: 1d774e56670cd8b9d753a8f8a98a3d258e9ee912 Parent: 03be45ac0a3b10807374ac0869ac8431bee348b7 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Dec 13 19:54:07 2012 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Dec 15 14:57:40 2012 +0100
cleanup: drop test for optarg NULL
Since -d takes an argument, we do not need to check for optarg being NULL here.
--- daemons/clvmd/clvmd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/clvmd/clvmd.c +1 -1
@@ -385,7 +385,7 @@ int main(int argc, char *argv[])case 'd' : debug_opt =DEBUG_STDERR ; - debug_arg = optarg ? (debug_t )atoi (optarg) :DEBUG_STDERR ; + debug_arg = (debug_t )atoi (optarg);if (debug_arg ==DEBUG_STDERR ) foreground_mode =1 ;break ;