Commit 8d5f7e27 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] pcmcia/rsrc_mgr.c warning fix.

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>,
      me

drivers/pcmcia/rsrc_mgr.c: In function `find_io_region':
drivers/pcmcia/rsrc_mgr.c:604: warning: large integer implicitly truncated to unsigned type

We don't really know what underlying type an ioaddr_t has, so just use an
integer here and let the compiler promote it appropriately.
parent 7b78461e
......@@ -601,7 +601,7 @@ int find_io_region(ioaddr_t *base, ioaddr_t num, unsigned long align,
int ret;
if (align == 0)
align = 0x10000UL;
align = 0x10000;
data.mask = align - 1;
data.offset = *base & data.mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment