rtl8712: replace min with min_t
authorPrzemo Firszt <przemo@firszt.eu>
Mon, 10 Dec 2012 23:21:22 +0000 (23:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jan 2013 00:39:11 +0000 (16:39 -0800)
commit0024a1e73404b06a302f39eb3ceb15d9d741c552
tree4328b0d9798eded48fd5c903145721a09f3aa49d
parent87a573ada017b40facab87b149fcbb3344eab9e8
rtl8712: replace min with min_t

I've changed the ugly casting here and used min_t() instead.  I
also changed the u16 to a u32 because ->network.Ssid.SsidLength
is 32 bits.  It doesn't make a difference, but truncating the
upper bits away is sloppy.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c