From c3762b248faf9db2b00b36c0535f79758942069e Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 14 Jan 2015 18:46:26 +0000 Subject: pcmcia: fix incorrect bracketing on a test Reported by wonderful 0-Day Test infrastructure. Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- drivers/pcmcia/rsrc_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1