From: Sachin Kamat Date: Fri, 27 Sep 2013 04:06:36 +0000 (+0530) Subject: staging: cxt1e1: musycc.c: Return negative error codes X-Git-Tag: MMI-PSA29.97-13-9~13364^2~530 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b6689c225ef53079e33c93b575b6b982e587b98d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: cxt1e1: musycc.c: Return negative error codes Return negative error codes as is followed in the rest of the kernel. Signed-off-by: Sachin Kamat Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/cxt1e1/musycc.c b/drivers/staging/cxt1e1/musycc.c index a2a2af1f9d2e..0ba8c3ae673b 100644 --- a/drivers/staging/cxt1e1/musycc.c +++ b/drivers/staging/cxt1e1/musycc.c @@ -746,7 +746,7 @@ musycc_init(ci_t *ci) regaddr = OS_kmalloc((INT_QUEUE_SIZE + 1) * sizeof(u_int32_t)); if (!regaddr) - return ENOMEM; + return -ENOMEM; ci->iqd_p_saved = regaddr; /* save orig value for free's usage */ ci->iqd_p = (u_int32_t *) ((unsigned long) (regaddr + INT_QUEUE_BOUNDARY - 1) & (~(INT_QUEUE_BOUNDARY - 1))); /* this calculates @@ -772,7 +772,7 @@ musycc_init(ci_t *ci) OS_kfree(pi->reg); pi->reg = NULL; } - return ENOMEM; + return -ENOMEM; } pi->regram_saved = regaddr; /* save orig value for free's usage */ pi->regram = (struct musycc_groupr *) ((unsigned long) (regaddr + GROUP_BOUNDARY - 1) &