summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2018-06-28 15:12:34 +0900
committerJunghoon Park <jh9216.park@samsung.com>2018-06-28 07:28:07 +0000
commitd373f8bdddf5e7b1cd24ddc96f99c1707c6bfca5 (patch)
tree355e36a88e9fbacae2f09abcddbefeed44b4d282
parent9ea9517532e3969107829948f9bfe8670adc5ec2 (diff)
downloadtidl-d373f8bdddf5e7b1cd24ddc96f99c1707c6bfca5.tar.gz
tidl-d373f8bdddf5e7b1cd24ddc96f99c1707c6bfca5.tar.bz2
tidl-d373f8bdddf5e7b1cd24ddc96f99c1707c6bfca5.zip
Adjust coding style for C Generator
Change-Id: I969426a20391c57a2f9b9a287003bc41e48459c2 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--idlc/c_gen/c_stub_body_gen_cb.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/idlc/c_gen/c_stub_body_gen_cb.h b/idlc/c_gen/c_stub_body_gen_cb.h
index 1b766a8..d021eec 100644
--- a/idlc/c_gen/c_stub_body_gen_cb.h
+++ b/idlc/c_gen/c_stub_body_gen_cb.h
@@ -23,12 +23,12 @@ static int __$$_method_$$(rpc_port_h port, rpc_port_parcel_h parcel, void *data)
{
rpc_port_stub_$$_context_h context = data;
rpc_port_h callback_port;
- int r = rpc_port_stub_get_port(__$$_stub, RPC_PORT_PORT_CALLBACK,
- context->instance, &callback_port);
+ int r;
+
+ r = rpc_port_stub_get_port(__$$_stub, RPC_PORT_PORT_CALLBACK, context->instance, &callback_port);
+ if (r != 0)
+ _E("Failed to get callback port");
- if (r != 0) {
- _E("Failed to get callback port");
- }
$$
return 0;
}