From: INSUN PYO Date: Tue, 12 Sep 2017 01:53:29 +0000 (+0900) Subject: Modification of coding rule violation X-Git-Tag: accepted/tizen/unified/20170912.191908^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb08937c04cea47e3a0742a1f941763b359bd479;p=platform%2Fadaptation%2Fsamsung_exynos%2Fdevice-manager-plugin-artik.git Modification of coding rule violation Signed-off-by: INSUN PYO Change-Id: I21e21fb7444722f7559b3dc8de7b2540e00e7ef8 (cherry picked from commit b688a4a641f3d0582cd9a9ffd0bf66254fbf3294) --- diff --git a/hw/battery/battery.c b/hw/battery/battery.c index 6baf474..076a542 100755 --- a/hw/battery/battery.c +++ b/hw/battery/battery.c @@ -57,7 +57,7 @@ static void remove_not_string(char *str) { char *t = str; - while(*t != '\0') { + while (*t != '\0') { if (*t == '\r' || *t == '\n' || *t == '\x0a') diff --git a/hw/usb_client/usb_client.c b/hw/usb_client/usb_client.c index 455e741..2716eea 100644 --- a/hw/usb_client/usb_client.c +++ b/hw/usb_client/usb_client.c @@ -172,7 +172,7 @@ static int legacy_alloc_config(int n_funcs, struct usb_configuration **_config) if (!config->funcs) goto free_strs; - /* + /* * We cannot read correct values * so assume that they are always default */ @@ -444,7 +444,7 @@ static int legacy_set_gadget_strs(struct usb_gadget_strings *strs) /* * TODO * Here is a good place to ensure that serial is immutable - */ + */ if (strs->manufacturer) { ret = sys_set_str(LEGACY_IMANUFACTURER_PATH, @@ -531,7 +531,7 @@ static int legacy_enable(struct usb_client *usb) static int legacy_disable(struct usb_client *usb) { return sys_set_str(LEGACY_ENABLE_PATH, - LEGACY_DISABLE); + LEGACY_DISABLE); } static void legacy_free_config(struct usb_configuration *config)