]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ALSA: hda - simplify azx_has_pm_runtime
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 15 Apr 2015 11:29:05 +0000 (13:29 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Apr 2015 08:13:47 +0000 (10:13 +0200)
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>
sound/pci/hda/hda_controller.h

index be1b7ded8d8202f43282611f0549d20577f75f98..0efdb094d21cf90e0e90a3fa8745b29276a82fb0 100644 (file)
@@ -404,7 +404,7 @@ struct azx {
        ((chip)->ops->reg_readb((dev)->sd_addr + AZX_REG_##reg))
 
 #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 */
 static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream)