Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1683578
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] net: ethernet: mediatek: remove useless code in mtk_probe() |
| Date | 2017-07-08 12:30 +0200 |
| Message-ID | <u0V9T-YB-19@gated-at.bofh.it> (permalink) |
| References | <u0HJD-uJ-1@gated-at.bofh.it> <u0I2Z-DO-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Date: Fri, 7 Jul 2017 15:23:34 -0500
> Remove useless local variables _match_, _soc_ and the code related.
>
> Notice that
>
> const struct of_device_id of_mtk_match[] = {
> { .compatible = "mediatek,mt2701-eth" },
> {},
> };
>
> So match->data is NULL.
>
> Suggested-by: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Applied, thanks.
If someone needs this they can it back, in a less buggy form.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] net: ethernet: mediatek: add NULL check on of_match_device() return value "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-07-07 09:20 +0200
Re: [PATCH] net: ethernet: mediatek: add NULL check on of_match_device() return value Andrew Lunn <andrew@lunn.ch> - 2017-07-07 17:00 +0200
Re: [PATCH] net: ethernet: mediatek: add NULL check on of_match_device() return value "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-07-07 22:10 +0200
[PATCH] net: ethernet: mediatek: remove useless code in mtk_probe() "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-07-07 22:30 +0200
Re: [PATCH] net: ethernet: mediatek: remove useless code in mtk_probe() Sean Wang <sean.wang@mediatek.com> - 2017-07-08 09:00 +0200
Re: [PATCH] net: ethernet: mediatek: remove useless code in mtk_probe() David Miller <davem@davemloft.net> - 2017-07-08 12:30 +0200
Re: [PATCH] net: ethernet: mediatek: add NULL check on of_match_device() return value Matthias Brugger <matthias.bgg@gmail.com> - 2017-07-07 17:00 +0200
csiph-web