Cleanup handling of NULL value passed for a mount option
authorSachin Prabhu <sprabhu@redhat.com>
Tue, 10 Apr 2012 17:12:27 +0000 (18:12 +0100)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 25 Apr 2012 06:14:35 +0000 (11:14 +0530)
commitfad62ae9f0a7c3d8182d2de2cacc3c1f2240c64b
treec3a35cfbce0a6a0cf9b5b6aa4b304ab7f72bc5da
parentc078e95df74e3c6b0d1ff2b8f6407c87092703a1
Cleanup handling of NULL value passed for a mount option

Allow blank user= and ip= mount option. Also clean up redundant
checks for NULL values since the token parser will not actually
match mount options with NULL values unless explicitly specified.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reported-by: Chris Clayton <chris2553@googlemail.com>
Acked-by: Jeff Layton <jlayton@samba.org>
Tested-by: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c