]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] pcmcia/rsrc_mgr.c warning fix.
authorAndrew Morton <akpm@osdl.org>
Tue, 13 Apr 2004 02:25:15 +0000 (19:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 13 Apr 2004 02:25:15 +0000 (19:25 -0700)
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.

drivers/pcmcia/rsrc_mgr.c

index 892e45110f19d9e17d03439a1b443b375c2e0f05..bd110ae669166e25b40b5a9595aae531c8cbdaf9 100644 (file)
@@ -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;