Skip to content

Commit

Permalink
can: flexcan: remove unused variable
Browse files Browse the repository at this point in the history
This patch removes the unused variable "struct net_device *dev" from the
"struct flexcan_priv".

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Jan 21, 2015
1 parent 5b5ba2a commit 3673796
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/can/flexcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ struct flexcan_devtype_data {

struct flexcan_priv {
struct can_priv can;
struct net_device *dev;
struct napi_struct napi;

void __iomem *base;
Expand Down Expand Up @@ -1220,7 +1219,6 @@ static int flexcan_probe(struct platform_device *pdev)
CAN_CTRLMODE_LISTENONLY | CAN_CTRLMODE_3_SAMPLES |
CAN_CTRLMODE_BERR_REPORTING;
priv->base = base;
priv->dev = dev;
priv->clk_ipg = clk_ipg;
priv->clk_per = clk_per;
priv->pdata = dev_get_platdata(&pdev->dev);
Expand Down

0 comments on commit 3673796

Please sign in to comment.