]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
staging: brcm80211: use min_t() instead of min()
authorHenry Ptasinski <henryp@broadcom.com>
Thu, 1 Sep 2011 09:16:59 +0000 (11:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:38:48 +0000 (16:38 -0700)
commit2618f3a63c968ba106832e26bf43a20dd3a119ec
tree197355678bb342ee542693051107efe6a74e7a6d
parentfa188ec8b6b44d3697b96900929ac55c0a88dcf4
staging: brcm80211: use min_t() instead of min()

Also eliminate a cast to int that could cause issues with very large values
of di->rxbufsize (as suggested by Dan Carpenter).

Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/dma.c