From: Luca Ellero Date: Thu, 10 Jul 2014 09:03:55 +0000 (+0200) Subject: staging: ced1401: fix ced_unset_transfer() X-Git-Tag: firefly_0821_release~176^2~3491^2~988 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5e5ca7dc462ff4fe9fe320b146f794335a825c03;p=firefly-linux-kernel-4.4.55.git staging: ced1401: fix ced_unset_transfer() Rename camel case arguments and locals in function ced_unset_transfer() Signed-off-by: Luca Ellero Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c index bba034cce7d8..f632d2f07723 100644 --- a/drivers/staging/ced1401/ced_ioc.c +++ b/drivers/staging/ced1401/ced_ioc.c @@ -801,16 +801,16 @@ int ced_set_transfer(struct ced_data *ced, } /**************************************************************************** -** UnSetTransfer +** ced_unset_transfer ** Erases a transfer area record ****************************************************************************/ -int ced_unset_transfer(struct ced_data *ced, int nArea) +int ced_unset_transfer(struct ced_data *ced, int area) { - int iReturn; + int ret; mutex_lock(&ced->io_mutex); - iReturn = ced_clear_area(ced, nArea); + ret = ced_clear_area(ced, area); mutex_unlock(&ced->io_mutex); - return iReturn; + return ret; } /**************************************************************************** diff --git a/drivers/staging/ced1401/usb1401.h b/drivers/staging/ced1401/usb1401.h index c8cb2c545288..2e88db8b6794 100644 --- a/drivers/staging/ced1401/usb1401.h +++ b/drivers/staging/ced1401/usb1401.h @@ -231,7 +231,7 @@ extern int ced_get_char(struct ced_data *ced); extern int ced_get_string(struct ced_data *ced, char __user *user, int n); extern int ced_set_transfer(struct ced_data *ced, struct transfer_area_desc __user *utd); -extern int ced_unset_transfer(struct ced_data *ced, int nArea); +extern int ced_unset_transfer(struct ced_data *ced, int area); extern int ced_set_event(struct ced_data *ced, struct transfer_event __user *pTE); extern int ced_stat_1401(struct ced_data *ced); extern int ced_line_count(struct ced_data *ced);