Skip to content

Commit

Permalink
Fix return-type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tecosaur authored and FedeDP committed Oct 12, 2023
1 parent c85b4aa commit 0d46bcb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ static int parse_bus_reply(sd_bus_message *reply, const char *member,
case POWERMANAGEMENT: {
return sd_bus_message_read(reply, "u", userdata);
}
case NONE: {
default:
return -EINVAL;
}
}
}

static void publish_pm_msg(const bool old, const bool new) {
Expand Down Expand Up @@ -216,7 +215,7 @@ static bool release_lock(void) {
return true;
}
}
case NONE:
default:
return false;
}
}
Expand Down

0 comments on commit 0d46bcb

Please sign in to comment.