logind: Remove redundant null check

This commit is contained in:
Kenny Levinsen 2021-08-15 13:34:26 +02:00
parent 166feaea33
commit 6e7a1db32d

View file

@ -245,10 +245,6 @@ static int dispatch_and_execute(struct libseat *base, int timeout) {
static const char *seat_name(struct libseat *base) {
struct backend_logind *backend = backend_logind_from_libseat_backend(base);
if (backend->seat == NULL) {
return NULL;
}
return backend->seat;
}