summaryrefslogtreecommitdiff
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorAlan <gnomes@lxorguk.ukuu.org.uk>2015-01-14 21:46:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-25 20:18:00 +0300
commitc3762b248faf9db2b00b36c0535f79758942069e (patch)
tree20e651e5df105f09fbb3734d663cb9571aecf64e /drivers/pcmcia
parenta1d88436d53a75e950db15834b3d2f8c0c358fdc (diff)
downloadlinux-c3762b248faf9db2b00b36c0535f79758942069e.tar.xz
pcmcia: fix incorrect bracketing on a test
Reported by wonderful 0-Day Test infrastructure. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/rsrc_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/rsrc_pci.c b/drivers/pcmcia/rsrc_pci.c
index 21c3683b1a53..1f67b3ba70fb 100644
--- a/drivers/pcmcia/rsrc_pci.c
+++ b/drivers/pcmcia/rsrc_pci.c
@@ -156,7 +156,7 @@ static struct resource *res_pci_find_mem(u_long base, u_long num,
static int res_pci_init(struct pcmcia_socket *s)
{
- if (!s->cb_dev || (!s->features & SS_CAP_PAGE_REGS)) {
+ if (!s->cb_dev || !(s->features & SS_CAP_PAGE_REGS)) {
dev_err(&s->dev, "not supported by res_pci\n");
return -EOPNOTSUPP;
}