提交 c3762b24 编写于 作者: A Alan 提交者: Greg Kroah-Hartman

pcmcia: fix incorrect bracketing on a test

Reported by wonderful 0-Day Test infrastructure.
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a1d88436
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册