diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2018-05-15 03:02:14 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-05-14 21:23:51 +0200 |
commit | c5f13d75fba09c499f8370e38f94624ff6510500 (patch) | |
tree | 8c739e675f3feb09e8750cd8f1802dcf00f438c2 /sound/core | |
parent | 4844f51282b60f8a96b05d422f452a785df308b9 (diff) | |
download | linux-c5f13d75fba09c499f8370e38f94624ff6510500.tar.bz2 |
ALSA: hda/ca0132: fix array_size.cocci warnings
sound/pci/hda/patch_ca0132.c:5062:50-51: WARNING: Use ARRAY_SIZE
sound/pci/hda/patch_ca0132.c:5092:50-51: WARNING: Use ARRAY_SIZE
Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
Semantic patch information:
This makes an effort to find cases where ARRAY_SIZE can be used such as
where there is a division of sizeof the array by the sizeof its first
element or by any indexed element or the element type. It replaces the
division of the two sizeofs by ARRAY_SIZE.
Generated by: scripts/coccinelle/misc/array_size.cocci
Fixes: 47cdf76e44e8 ("ALSA: hda/ca0132: Add new control changes for SBZ + R3Di")
CC: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
0 files changed, 0 insertions, 0 deletions