Commit 136c489b authored by Jingoo Han's avatar Jingoo Han Committed by Felipe Balbi

usb: gadget: f_mass_storage: use NULL instead of 0

The local variables such as 'filename', 'vendor_name', and
'product_name' are pointers; thus, use NULL instead of 0 to fix
the following sparse warnings

drivers/usb/gadget/f_mass_storage.c:3046:27: warning: Using plain integer as NULL pointer
drivers/usb/gadget/f_mass_storage.c:3050:28: warning: Using plain integer as NULL pointer
drivers/usb/gadget/f_mass_storage.c:3051:29: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent ffcba5a5
...@@ -3043,12 +3043,12 @@ fsg_config_from_params(struct fsg_config *cfg, ...@@ -3043,12 +3043,12 @@ fsg_config_from_params(struct fsg_config *cfg,
lun->filename = lun->filename =
params->file_count > i && params->file[i][0] params->file_count > i && params->file[i][0]
? params->file[i] ? params->file[i]
: 0; : NULL;
} }
/* Let MSF use defaults */ /* Let MSF use defaults */
cfg->vendor_name = 0; cfg->vendor_name = NULL;
cfg->product_name = 0; cfg->product_name = NULL;
cfg->ops = NULL; cfg->ops = NULL;
cfg->private_data = NULL; cfg->private_data = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment