diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-01-23 03:40:07 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-04 18:14:21 +0400 |
commit | 10ec0f8a74a35f4b601dd1c84931962b809919bb (patch) | |
tree | 85db20a5e8652f19ed36f0c77460af7cc4f280a7 /drivers/serial/arm_dcc.c | |
parent | e70fb539a634ab86153353aec8a9c1fede818eb0 (diff) | |
download | u-boot-10ec0f8a74a35f4b601dd1c84931962b809919bb.tar.xz |
serial: arm_dcc: Fix compilation warning and remove unneeded initialization
- arm_dcc_dev is already initialized.
- Remove unused rc variable
Warning log:
arm_dcc.c: In function 'drv_arm_dcc_init':
arm_dcc.c:145:6: warning: unused variable 'rc' [-Wunused-variable]
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/serial/arm_dcc.c')
-rw-r--r-- | drivers/serial/arm_dcc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index 812dcf0787..c217c88e59 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -142,11 +142,6 @@ static struct stdio_dev arm_dcc_dev; int drv_arm_dcc_init(void) { - int rc; - - /* Device initialization */ - memset(&arm_dcc_dev, 0, sizeof(arm_dcc_dev)); - strcpy(arm_dcc_dev.name, "dcc"); arm_dcc_dev.ext = 0; /* No extensions */ arm_dcc_dev.flags = DEV_FLAGS_INPUT | DEV_FLAGS_OUTPUT; |