diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-09-12 15:45:50 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-17 09:50:41 +0200 |
commit | fb6fd3128c11653b7990b16887b37ddab6d1bae3 (patch) | |
tree | 2de3f6571588e2edd482adeb9b0fb18fe56d0100 /common/ratp/mw.c | |
parent | e42a40dcae5fbb62ae92443a27a1ad62a5493f24 (diff) | |
download | barebox-fb6fd3128c11653b7990b16887b37ddab6d1bae3.tar.gz barebox-fb6fd3128c11653b7990b16887b37ddab6d1bae3.tar.xz |
ratp: fix incorrect whitespaces in method calls
This is a simple coding style fix to avoid the whitespace before the
open-parenthesis in method calls.
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/ratp/mw.c')
-rw-r--r-- | common/ratp/mw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/ratp/mw.c b/common/ratp/mw.c index 0579da3c16..55e79bbaf0 100644 --- a/common/ratp/mw.c +++ b/common/ratp/mw.c @@ -80,7 +80,7 @@ static int ratp_cmd_mw(const struct ratp_bb *req, int req_len, /* At least message header should be valid */ if (req_len < sizeof(*mw_req)) { pr_err("ignored: size mismatch (%d < %zu)\n", - req_len, sizeof (*mw_req)); + req_len, sizeof(*mw_req)); ret = -EINVAL; goto out; } @@ -131,7 +131,7 @@ static int ratp_cmd_mw(const struct ratp_bb *req, int req_len, goto out; } - addr = be16_to_cpu (mw_req->addr); + addr = be16_to_cpu(mw_req->addr); path = xstrndup((const char *)&buffer[path_offset], path_size); fd = open_and_lseek(path, O_RWSIZE_1 | O_WRONLY, addr); @@ -164,7 +164,7 @@ out: *rsp = (struct ratp_bb *)mw_rsp; *rsp_len = sizeof(*mw_rsp); - free (path); + free(path); return ret; } |