aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2020-01-11 15:47:35 -0600
committerTakashi Iwai <[email protected]>2020-01-12 09:45:09 +0100
commit8a71821f12a010d7100f9cc1f7b218aff0313c4a (patch)
tree6a316e9404d56d4580072a318d001e50af82cc7a /tools/perf/scripts/python/event_analyzing_sample.py
parentf9993480214f1345497875ed363a52b7ef7e33db (diff)
ALSA: hda: patch_realtek: fix empty macro usage in if block
GCC reports the following warning with W=1 sound/pci/hda/patch_realtek.c: In function ‘alc269_suspend’: sound/pci/hda/patch_realtek.c:3616:29: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] 3616 | alc5505_dsp_suspend(codec); | ^ sound/pci/hda/patch_realtek.c: In function ‘alc269_resume’: sound/pci/hda/patch_realtek.c:3651:28: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] 3651 | alc5505_dsp_resume(codec); | ^ This is a classic macro problem and can indeed lead to bad program flows. Fix by using the usual "do { } while (0)" pattern Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions