Skip to content
Commit 2fd091f3 authored by roel kluin's avatar roel kluin Committed by Paul Mackerras
Browse files

powerpc/macintosh: Fix unsigned check in smu_sat_get_sdb_partition()



i2c_smbus_read_word_data() returns a s32, which may be negative
but unsigned len cannot be negative.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent e6a437eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment