Commit b79d8fff authored by Hannes Eder's avatar Hannes Eder Committed by David S. Miller

drivers/net/atlx: fix sparse warnings: fix signedness

Impact: While being at it: statics do not need to be initialized with 0.

Fix this sparse warnings:
  drivers/net/atlx/atl1.c:109:1: warning: incorrect type in initializer (different signedness)
  drivers/net/atlx/atl2.c:2870:1: warning: incorrect type in initializer (different signedness)
  drivers/net/atlx/atl2.c:2880:1: warning: incorrect type in initializer (different signedness)
  drivers/net/atlx/atl2.c:2894:1: warning: incorrect type in initializer (different signedness)
  drivers/net/atlx/atl2.c:2904:1: warning: incorrect type in initializer (different signedness)
  drivers/net/atlx/atl2.c:2913:1: warning: incorrect type in initializer (different signedness)
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Acked-by: default avatarJay Cliburn <jcliburn@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fd8ef49e
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
* Default Value: 100 (200us) * Default Value: 100 (200us)
*/ */
static int __devinitdata int_mod_timer[ATL1_MAX_NIC+1] = ATL1_PARAM_INIT; static int __devinitdata int_mod_timer[ATL1_MAX_NIC+1] = ATL1_PARAM_INIT;
static int num_int_mod_timer; static unsigned int num_int_mod_timer;
module_param_array_named(int_mod_timer, int_mod_timer, int, module_param_array_named(int_mod_timer, int_mod_timer, int,
&num_int_mod_timer, 0); &num_int_mod_timer, 0);
MODULE_PARM_DESC(int_mod_timer, "Interrupt moderator timer"); MODULE_PARM_DESC(int_mod_timer, "Interrupt moderator timer");
......
...@@ -2854,7 +2854,7 @@ static void atl2_force_ps(struct atl2_hw *hw) ...@@ -2854,7 +2854,7 @@ static void atl2_force_ps(struct atl2_hw *hw)
#else #else
#define ATL2_PARAM(X, desc) \ #define ATL2_PARAM(X, desc) \
static int __devinitdata X[ATL2_MAX_NIC+1] = ATL2_PARAM_INIT; \ static int __devinitdata X[ATL2_MAX_NIC+1] = ATL2_PARAM_INIT; \
static int num_##X = 0; \ static unsigned int num_##X; \
module_param_array_named(X, X, int, &num_##X, 0); \ module_param_array_named(X, X, int, &num_##X, 0); \
MODULE_PARM_DESC(X, desc); MODULE_PARM_DESC(X, desc);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment