Commit 828fa8ce authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai

ALSA: hda - simplify azx_has_pm_runtime

Because AZX_DCAPS_PM_RUNTIME is always defined as non-zero, the
initial part of the expression can be skipped.
Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d6eb9e3e
...@@ -404,7 +404,7 @@ struct azx { ...@@ -404,7 +404,7 @@ struct azx {
((chip)->ops->reg_readb((dev)->sd_addr + AZX_REG_##reg)) ((chip)->ops->reg_readb((dev)->sd_addr + AZX_REG_##reg))
#define azx_has_pm_runtime(chip) \ #define azx_has_pm_runtime(chip) \
(!AZX_DCAPS_PM_RUNTIME || ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME)) ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME)
/* PCM setup */ /* PCM setup */
static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream) static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment