I think you can make it clearer by avoiding regexps and one-letter names:
```python
for line in res.splitlines():
    fields = line.split()
    if fields[0] == device:
        return True
```