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@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html