projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
934613b
)
udev/iocost: query_named_solution() provides non-NULL model and qos on success
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 26 Apr 2023 03:17:18 +0000
(12:17 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 26 Apr 2023 05:50:25 +0000
(14:50 +0900)
src/udev/iocost/iocost.c
patch
|
blob
|
history
diff --git
a/src/udev/iocost/iocost.c
b/src/udev/iocost/iocost.c
index 9737cf6af706542732a6e5530c2ffecddab033be..804d11ca171c4402cdb07a2525488a789320a3c7 100644
(file)
--- a/
src/udev/iocost/iocost.c
+++ b/
src/udev/iocost/iocost.c
@@
-275,8
+275,7
@@
static int query_solutions_for_path(const char *path) {
STRV_FOREACH(s, solutions) {
const char *model, *qos;
- r = query_named_solution(device, *s, &model, &qos);
- if (r < 0 || !model || !qos)
+ if (query_named_solution(device, *s, &model, &qos) < 0)
continue;
log_info("%s: io.cost.qos: %s\n"