From: Firo Yang <firogm@gmail.com>
To: axboe@kernel.dk
Cc: linux-block@vger.kernel.org, kernel-janitors@vger.kernel.org,
Firo Yang <yongming.yang@windriver.com>,
Firo Yang <firogm@gmail.com>
Subject: [PATCH] elevator: eliminate unused result build warning
Date: Wed, 10 May 2017 23:29:35 +0800 [thread overview]
Message-ID: <20170510152935.24968-1-yongming.yang@windriver.com> (raw)
Gcc complains about ignoring return value of ‘strstrip’; Fix it by
just using the strstrip() as the function parameter.
Signed-off-by: Firo Yang <firogm@gmail.com>
---
block/elevator.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/block/elevator.c b/block/elevator.c
index fda6be9..dd0ed19 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -1099,8 +1099,7 @@ ssize_t elv_iosched_store(struct request_queue *q, const char *name,
return count;
strlcpy(elevator_name, skip_spaces(name), sizeof(elevator_name));
- strstrip(elevator_name);
- ret = __elevator_change(q, elevator_name);
+ ret = __elevator_change(q, strstrip(elevator_name));
if (!ret)
return count;
--
2.9.3
next reply other threads:[~2017-05-10 15:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-10 15:29 Firo Yang [this message]
2017-05-10 15:30 ` [PATCH] elevator: eliminate unused result build warning Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170510152935.24968-1-yongming.yang@windriver.com \
--to=firogm@gmail.com \
--cc=axboe@kernel.dk \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=yongming.yang@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox