mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
pcmcia: fix incorrect bracketing on a test
Reported by wonderful 0-Day Test infrastructure. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
a1d88436d5
commit
c3762b248f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue