logind: Remove redundant null check
This commit is contained in:
parent
166feaea33
commit
6e7a1db32d
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue