summaryrefslogtreecommitdiffstats
path: root/arch/mips/pmcs-msp71xx
diff options
context:
space:
mode:
authorPaul Burton2018-08-31 20:49:20 +0200
committerPaul Burton2018-08-31 20:49:20 +0200
commit4988154211adfd688bf7f3f7eb1691608083a1f9 (patch)
tree6387cfc78cee7f6673b8612fce30b0675ac31627 /arch/mips/pmcs-msp71xx
parentMIPS: ralink: Add rt3352 SPI_CS1 pinmux (diff)
downloadkernel-qcow2-linux-4988154211adfd688bf7f3f7eb1691608083a1f9.tar.gz
kernel-qcow2-linux-4988154211adfd688bf7f3f7eb1691608083a1f9.tar.xz
kernel-qcow2-linux-4988154211adfd688bf7f3f7eb1691608083a1f9.zip
MIPS: Remove no-op/identity casts
Clean up instances of casts to the type that a value already has, since they are effectively no-ops and only serve to complicate the code. This is the result of the following semantic patch: @identitycast@ type T; T *A; @@ - (T *)(A) + A Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/19599/
Diffstat (limited to 'arch/mips/pmcs-msp71xx')
-rw-r--r--arch/mips/pmcs-msp71xx/msp_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/pmcs-msp71xx/msp_usb.c b/arch/mips/pmcs-msp71xx/msp_usb.c
index c87c5f810cd1..d38ac70b5a2e 100644
--- a/arch/mips/pmcs-msp71xx/msp_usb.c
+++ b/arch/mips/pmcs-msp71xx/msp_usb.c
@@ -133,13 +133,13 @@ static int __init msp_usb_setup(void)
* "D" for device-mode. If it works for Ethernet, why not USB...
* -- hammtrev, 2007/03/22
*/
- snprintf((char *)&envstr[0], sizeof(envstr), "usbmode");
+ snprintf(&envstr[0], sizeof(envstr), "usbmode");
/* set default host mode */
val = 1;
/* get environment string */
- strp = prom_getenv((char *)&envstr[0]);
+ strp = prom_getenv(&envstr[0]);
if (strp) {
/* compare string */
if (!strcmp(strp, "device"))