public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usb: cosmetic: double const
@ 2014-06-17 19:14 Jeroen Hofstee
  2014-06-25 20:19 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Jeroen Hofstee @ 2014-06-17 19:14 UTC (permalink / raw)
  To: u-boot

For plain array const can be either before or after
the type definition. Adding both is simply redundand.
Remove the later one.

cc: marex at denx.de
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
---
 drivers/usb/eth/asix.c    | 2 +-
 drivers/usb/eth/mcs7830.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c
index ce133f0..6557055 100644
--- a/drivers/usb/eth/asix.c
+++ b/drivers/usb/eth/asix.c
@@ -565,7 +565,7 @@ struct asix_dongle {
 	int flags;
 };
 
-static const struct asix_dongle const asix_dongles[] = {
+static const struct asix_dongle asix_dongles[] = {
 	{ 0x05ac, 0x1402, FLAG_TYPE_AX88772 },	/* Apple USB Ethernet Adapter */
 	{ 0x07d1, 0x3c05, FLAG_TYPE_AX88772 },	/* D-Link DUB-E100 H/W Ver B1 */
 	{ 0x2001, 0x1a02, FLAG_TYPE_AX88772 },	/* D-Link DUB-E100 H/W Ver C1 */
diff --git a/drivers/usb/eth/mcs7830.c b/drivers/usb/eth/mcs7830.c
index c353286..8e738d4 100644
--- a/drivers/usb/eth/mcs7830.c
+++ b/drivers/usb/eth/mcs7830.c
@@ -666,7 +666,7 @@ struct mcs7830_dongle {
 /*
  * mcs7830_dongles - the list of supported Moschip based USB ethernet dongles
  */
-static const struct mcs7830_dongle const mcs7830_dongles[] = {
+static const struct mcs7830_dongle mcs7830_dongles[] = {
 	{ 0x9710, 0x7832, },	/* Moschip 7832 */
 	{ 0x9710, 0x7830, },	/* Moschip 7830 */
 	{ 0x9710, 0x7730, },	/* Moschip 7730 */
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] usb: cosmetic: double const
  2014-06-17 19:14 [U-Boot] [PATCH] usb: cosmetic: double const Jeroen Hofstee
@ 2014-06-25 20:19 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2014-06-25 20:19 UTC (permalink / raw)
  To: u-boot

On Tuesday, June 17, 2014 at 09:14:17 PM, Jeroen Hofstee wrote:
> For plain array const can be either before or after
> the type definition. Adding both is simply redundand.
> Remove the later one.
> 
> cc: marex at denx.de
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>

Applied, thanks.

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-25 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17 19:14 [U-Boot] [PATCH] usb: cosmetic: double const Jeroen Hofstee
2014-06-25 20:19 ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox