Skip to content

Commit

Permalink
drivers/net/wireless/prism54: fix sparse warning: fix signedness
Browse files Browse the repository at this point in the history
Fix sparse warning:
  drivers/net/wireless/prism54/isl_ioctl.c:2997:32: warning: incorrect type in argument 2 (different signedness)
  drivers/net/wireless/prism54/oid_mgt.c:712:42: warning: incorrect type in argument 2 (different signedness)

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Feb 18, 2009
1 parent b9da9e9 commit 7f50ca0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/net/wireless/prism54/isl_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2981,7 +2981,8 @@ prism54_set_spy(struct net_device *ndev,
union iwreq_data *uwrq, char *extra)
{
islpci_private *priv = netdev_priv(ndev);
u32 u, oid = OID_INL_CONFIG;
u32 u;
enum oid_num_t oid = OID_INL_CONFIG;

down_write(&priv->mib_sem);
mgt_get(priv, OID_INL_CONFIG, &u);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/prism54/oid_mgt.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ int
mgt_commit(islpci_private *priv)
{
int rvalue;
u32 u;
enum oid_num_t u;

if (islpci_get_state(priv) < PRV_STATE_INIT)
return 0;
Expand Down

0 comments on commit 7f50ca0

Please sign in to comment.