summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@denx.de>2019-07-24 05:52:54 -0400
committerTakashi Iwai <tiwai@suse.de>2019-07-24 09:03:50 -0400
commita30f1743e4f57b359903fd679476b2903e7e5dac (patch)
treeae596543a62e27233ae0b85bf2a84fd36c3f6751
parentd2d5a6b0253d30ef04d513447cdd00df4fa627c3 (diff)
ALSA: line6: sizeof (byte) is always 1, use that fact.
sizeof (byte) is always 1, use that fact and make interesting code explicit. Signed-off-by: Pavel Machek <pavel@denx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/usb/line6/driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c
index ab2ec896f49c..b5a3f754a4f1 100644
--- a/sound/usb/line6/driver.c
+++ b/sound/usb/line6/driver.c
@@ -342,7 +342,7 @@ int line6_read_data(struct usb_line6 *line6, unsigned address, void *data,
342 if (address > 0xffff || datalen > 0xff) 342 if (address > 0xffff || datalen > 0xff)
343 return -EINVAL; 343 return -EINVAL;
344 344
345 len = kmalloc(sizeof(*len), GFP_KERNEL); 345 len = kmalloc(1, GFP_KERNEL);
346 if (!len) 346 if (!len)
347 return -ENOMEM; 347 return -ENOMEM;
348 348
@@ -418,7 +418,7 @@ int line6_write_data(struct usb_line6 *line6, unsigned address, void *data,
418 if (address > 0xffff || datalen > 0xffff) 418 if (address > 0xffff || datalen > 0xffff)
419 return -EINVAL; 419 return -EINVAL;
420 420
421 status = kmalloc(sizeof(*status), GFP_KERNEL); 421 status = kmalloc(1, GFP_KERNEL);
422 if (!status) 422 if (!status)
423 return -ENOMEM; 423 return -ENOMEM;
424 424