[PATCH] staging: most: sound: fix noderef.cocci warnings
kbuild test robot
fengguang.wu at intel.com
Fri Dec 14 14:01:29 UTC 2018
From: kbuild test robot <fengguang.wu at intel.com>
drivers/staging/most/sound/sound.c:673:21-27: ERROR: application of sizeof to pointer
sizeof when applied to a pointer typed expression gives the size of
the pointer
Generated by: scripts/coccinelle/misc/noderef.cocci
Fixes: 58bce1efd0e8 ("staging: most: sound: rename variable")
CC: Christian Gromm <christian.gromm at microchip.com>
Signed-off-by: kbuild test robot <fengguang.wu at intel.com>
---
url: https://github.com/0day-ci/linux/commits/Christian-Gromm/staging-most-sound-change-sound-card-layout/20181213-063731
sound.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/staging/most/sound/sound.c
+++ b/drivers/staging/most/sound/sound.c
@@ -670,7 +670,7 @@ skip_adpt_alloc:
goto err_free_adpt;
pcm->private_data = channel;
- snprintf(pcm->name, sizeof(device_name), device_name);
+ snprintf(pcm->name, sizeof(*device_name), device_name);
snd_pcm_set_ops(pcm, direction, &pcm_ops);
if (create) {
More information about the devel
mailing list