Skip to content

Commit

Permalink
staging/ft1000: fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent 64cab4e commit 3a0ccb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a0ccb0

Please sign in to comment.