aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorMao Wenan <[email protected]>2019-09-12 04:02:17 +0000
committerDavid S. Miller <[email protected]>2019-09-13 20:06:20 +0000
commit8e2ef6abd4653b1cfeefe262017ecdd5eaf40fef (patch)
tree32c066b1f02081a3f3194c51342ba2a278bd3349 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentixgbevf: Fix secpath usage for IPsec Tx offload (diff)
downloadkernel-8e2ef6abd4653b1cfeefe262017ecdd5eaf40fef.tar.gz
kernel-8e2ef6abd4653b1cfeefe262017ecdd5eaf40fef.zip
sctp: change return type of sctp_get_port_local
Currently sctp_get_port_local() returns a long which is either 0,1 or a pointer casted to long. It's neither of the callers use the return value since commit 62208f12451f ("net: sctp: simplify sctp_get_port"). Now two callers are sctp_get_port and sctp_do_bind, they actually assumend a casted to an int was the same as a pointer casted to a long, and they don't save the return value just check whether it is zero or non-zero, so it would better change return type from long to int for sctp_get_port_local. Signed-off-by: Mao Wenan <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions