Hello. On 11/12/2013 10:14 PM, Geert Uytterhoeven wrote:
This allows to drop a few casts.
Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> --- drivers/net/ethernet/amd/7990.h | 2 +- drivers/net/ethernet/amd/hplance.c | 2 +- drivers/net/ethernet/amd/mvme147.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/amd/7990.h b/drivers/net/ethernet/amd/7990.h index 0a5837b96421..60c60926afda 100644 --- a/drivers/net/ethernet/amd/7990.h +++ b/drivers/net/ethernet/amd/7990.h @@ -100,7 +100,7 @@ struct lance_init_block { */ struct lance_private { - char *name; + const char *name;
Indent with tab, not spaces, please.
diff --git a/drivers/net/ethernet/amd/hplance.c b/drivers/net/ethernet/amd/hplance.c index 0c61fd50d882..a9046cf3a564 100644 --- a/drivers/net/ethernet/amd/hplance.c +++ b/drivers/net/ethernet/amd/hplance.c @@ -149,7 +149,7 @@ static void hplance_init(struct net_device *dev, struct dio_dev *d) } lp = netdev_priv(dev); - lp->lance.name = (char*)d->name; /* discards const, shut up gcc */ + lp->lance.name = d->name;
Same here. WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html