rfkill: fix typo [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
e9aa2a14b0
commit
dec4fae21b
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ static int rfkill_ro_open(int nonblock)
|
|||
/* returns: 0 success, 1 read again, < 0 error */
|
||||
static int rfkill_read_event(int fd, struct rfkill_event *event)
|
||||
{
|
||||
ssize_t len = read(fd, event, sizeof(event));
|
||||
ssize_t len = read(fd, event, sizeof(*event));
|
||||
|
||||
if (len < 0) {
|
||||
if (errno == EAGAIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue