staging/ft1000: fix sparse warning
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 7 Jul 2012 12:05:14 +0000 (17:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 19:26:42 +0000 (12:26 -0700)
sparse warns about having 0 assigned to a pointer,
fix it up by using NULL.

The following sparse warning is fixed

drivers/staging/ft1000/ft1000-usb/ft1000_debug.c:170:52: warning: Using plain integer as NULL pointer

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c

index 19db23f..6d911fd 100644 (file)
@@ -167,7 +167,7 @@ int ft1000_create_dev(struct ft1000_device *dev)
                goto fail;
        }
 
-       dir = debugfs_create_dir(info->DeviceName, 0);
+       dir = debugfs_create_dir(info->DeviceName, NULL);
        if (IS_ERR(dir)) {
                result = PTR_ERR(dir);
                goto debug_dir_fail;