From: Yijing Wang Date: Thu, 19 Jun 2014 08:30:09 +0000 (+0800) Subject: PCI/MSI: Remove unused msi_enabled_mask() X-Git-Tag: firefly_0821_release~176^2~3365^2~2^6~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=199596ef9184ab2bc0eb43d1af9e0b723ce07840;p=firefly-linux-kernel-4.4.55.git PCI/MSI: Remove unused msi_enabled_mask() No one uses msi_enabled_mask(); remove the dead code. No functional change. Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index ba84f17d8062..9c6995043fff 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -172,11 +172,6 @@ static inline __attribute_const__ u32 msi_capable_mask(u16 control) return msi_mask((control >> 1) & 7); } -static inline __attribute_const__ u32 msi_enabled_mask(u16 control) -{ - return msi_mask((control >> 4) & 7); -} - /* * PCI 2.3 does not specify mask bits for each MSI interrupt. Attempting to * mask all MSI interrupts by clearing the MSI enable bit does not work