Skip to content

Commit

Permalink
[PATCH] Fix warning with b44.c on 64bit boxes
Browse files Browse the repository at this point in the history
sizeof() return is not an int, so use max_t to get the types right.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Jan 18, 2006
1 parent 0570cc0 commit 22d4d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,7 @@ static int __init b44_init(void)

/* Setup paramaters for syncing RX/TX DMA descriptors */
dma_desc_align_mask = ~(dma_desc_align_size - 1);
dma_desc_sync_size = max(dma_desc_align_size, sizeof(struct dma_desc));
dma_desc_sync_size = max_t(unsigned int, dma_desc_align_size, sizeof(struct dma_desc));

return pci_module_init(&b44_driver);
}
Expand Down

0 comments on commit 22d4d77

Please sign in to comment.