Skip to content

Commit

Permalink
ALSA: hda: use semicolons rather than commas to separate statements
Browse files Browse the repository at this point in the history
Replace commas with semicolons.  What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):

// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>

Signed-off-by: Julia Lawall <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
JuliaLawall authored and tiwai committed Oct 12, 2020
1 parent 4dda3a1 commit 46394db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_ca0132.c
Original file line number Diff line number Diff line change
Expand Up @@ -3114,7 +3114,7 @@ static int dspxfr_one_seg(struct hda_codec *codec,
}

data = fls->data;
chip_addx = fls->chip_addr,
chip_addx = fls->chip_addr;
words_to_write = fls->count;

if (!words_to_write)
Expand Down
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,7 @@ static int alloc_generic_hdmi(struct hda_codec *codec)
spec->chmap.ops.get_chmap = hdmi_get_chmap;
spec->chmap.ops.set_chmap = hdmi_set_chmap;
spec->chmap.ops.is_pcm_attached = is_hdmi_pcm_attached;
spec->chmap.ops.get_spk_alloc = hdmi_get_spk_alloc,
spec->chmap.ops.get_spk_alloc = hdmi_get_spk_alloc;

codec->spec = spec;
hdmi_array_init(spec, 4);
Expand Down

0 comments on commit 46394db

Please sign in to comment.