From: Michal Simek Date: Tue, 22 Jan 2013 23:40:07 +0000 (+0000) Subject: serial: arm_dcc: Fix compilation warning and remove unneeded initialization X-Git-Tag: v2013.04-rc1~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=10ec0f8a74a35f4b601dd1c84931962b809919bb;p=oweals%2Fu-boot.git 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 Acked-by: Marek Vasut --- 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;