]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: arm_dcc: Fix compilation warning and remove unneeded initialization
authorMichal Simek <michal.simek@xilinx.com>
Tue, 22 Jan 2013 23:40:07 +0000 (23:40 +0000)
committerTom Rini <trini@ti.com>
Mon, 4 Feb 2013 14:14:21 +0000 (09:14 -0500)
- 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>
drivers/serial/arm_dcc.c

index 812dcf0787c03591c9722c6b8bfa224dff99c659..c217c88e59aec10c47bb547520d5eb7a1e61906c 100644 (file)
@@ -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;