Skip to content
Commit 5eea6c97 authored by Jordy Zomer's avatar Jordy Zomer Committed by Vinod Koul
Browse files

dmaengine: usb-dmac: make usb_dmac_get_current_residue unsigned



The usb_dmac_get_current_residue function used to
take a signed integer as a pos parameter.
The only callers of this function passes an unsigned integer to it.
Therefore to make it obviously safe, let's just make this an unsgined
integer as this is used in pointer arithmetics.

Signed-off-by: default avatarJordy Zomer <jordy@pwning.systems>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210731091939.510816-1-jordy@pwning.systems


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent b60bb6e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment