projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c50d2e5
)
i40e: Change variable type to avoid typecheck failure
author
Kevin Scott
<
[email protected]
>
Tue, 1 Apr 2014 07:11:52 +0000
(07:11 +0000)
committer
Jeff Kirsher
<
[email protected]
>
Mon, 28 Apr 2014 12:20:32 +0000
(
05:20
-0700)
Change the variable type to avoid compiler warning about int to u16
possible data truncation.
Change-ID: I5eb3b578c86513c9625ca32d2f0b57cc01d7dc98
Signed-off-by: Kevin Scott <
[email protected]
>
Acked-by: Greg Rose <
[email protected]
>
Acked-by: Shannon Nelson <
[email protected]
>
Tested-by: Kavindya Deegala <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/i40e/i40e_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/i40e/i40e_common.c
b/drivers/net/ethernet/intel/i40e/i40e_common.c
index fde5aef75eab0f5ed1bbfcb2469ed41bc0169e17..e19df8f95d64abb8facb72365a00b8a0e389ff56 100644
(file)
--- a/
drivers/net/ethernet/intel/i40e/i40e_common.c
+++ b/
drivers/net/ethernet/intel/i40e/i40e_common.c
@@
-1300,7
+1300,7
@@
i40e_status i40e_aq_send_driver_version(struct i40e_hw *hw,
struct i40e_aqc_driver_version *cmd =
(struct i40e_aqc_driver_version *)&desc.params.raw;
i40e_status status;
-
int
len;
+
u16
len;
if (dv == NULL)
return I40E_ERR_PARAM;