]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/qaic: Use overflow check function instead of division
authorCarl Vanderlip <quic_carlv@quicinc.com>
Tue, 7 Oct 2025 17:42:18 +0000 (19:42 +0200)
committerJeff Hugo <jeff.hugo@oss.qualcomm.com>
Tue, 14 Oct 2025 15:52:24 +0000 (09:52 -0600)
commit6bee90901fb16f99808da8423a976a99aef4d6c9
tree9713c3bccdf2d58f0bcaf8a8ac053f0eb0f33f22
parent4981c2a0663beea1affdf77714e1c4afee9cc91b
accel/qaic: Use overflow check function instead of division

Division is an expensive operation. Overflow check functions exist
already. Use existing overflow check functions rather than dividing to
check for overflow.

Signed-off-by: Carl Vanderlip <quic_carlv@quicinc.com>
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Reviewed-by: Carl Vanderlip <carl.vanderlip@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251007174218.469867-1-youssef.abdulrahman@oss.qualcomm.com
drivers/accel/qaic/qaic_control.c
drivers/accel/qaic/qaic_data.c