diff options
author | David Henningsson <david.henningsson@canonical.com> | 2015-04-15 07:29:05 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-16 04:13:47 -0400 |
commit | 828fa8ce5a8d75169f16740c28c8a1b7c13dd96b (patch) | |
tree | e87b14cc5b60d4fa6df975d3569cd6748f421c4a /sound/pci | |
parent | d6eb9e3ec78c98324097bab8eea266c3bb0d0ac7 (diff) |
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: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_controller.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_controller.h b/sound/pci/hda/hda_controller.h index be1b7ded8d82..0efdb094d21c 100644 --- a/sound/pci/hda/hda_controller.h +++ b/sound/pci/hda/hda_controller.h | |||
@@ -404,7 +404,7 @@ struct azx { | |||
404 | ((chip)->ops->reg_readb((dev)->sd_addr + AZX_REG_##reg)) | 404 | ((chip)->ops->reg_readb((dev)->sd_addr + AZX_REG_##reg)) |
405 | 405 | ||
406 | #define azx_has_pm_runtime(chip) \ | 406 | #define azx_has_pm_runtime(chip) \ |
407 | (!AZX_DCAPS_PM_RUNTIME || ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME)) | 407 | ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME) |
408 | 408 | ||
409 | /* PCM setup */ | 409 | /* PCM setup */ |
410 | static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream) | 410 | static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream) |