staging: typec: Fix endianness warning discovered by sparse
authorThomas Gardner <tmg@fastmail.com>
Fri, 7 Jul 2017 00:24:32 +0000 (10:24 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:40:59 +0000 (08:40 +0200)
commitcbe5843e7624b6a468d74faccffec57b5c73200b
treeb63d6a6ae1d2a12e9ec2aaa0f4488f4437c5dc6a
parent948d704855312ca1c5533a0bc39ac0783f90beb9
staging: typec: Fix endianness warning discovered by sparse

The below warning is resolved by removing the cpu_to_le32() call. This
call was redundant; vdm_run_state_machine() ensures that SVDM responses
have the correct endianness before sending.

typec/tcpm.c:1019:49: warning: incorrect type in assignment (different base types)
typec/tcpm.c:1019:49:    expected unsigned int [unsigned] [usertype] <noident>
typec/tcpm.c:1019:49:    got restricted __le32 [usertype] <noident>

Signed-off-by: Thomas Gardner <tmg@fastmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/typec/tcpm.c