• G
    USB: make transfer_buffer_lengths in struct urb field u32 · 16e2e5f6
    Greg Kroah-Hartman 提交于
    Roel Kluin pointed out that transfer_buffer_lengths in struct urb was
    declared as an 'int'.  This patch changes this field to be 'u32' to
    prevent any potential negative conversion and comparison errors.
    
    This triggered a few compiler warning messages when these fields were
    being used with the min macro, so they have also been fixed up in this
    patch.
    
    Cc: Roel Kluin <roel.kluin@gmail.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    16e2e5f6
sl811-hcd.c 45.8 KB