commit | ca0465aff7258cc249e7cba0631fbb11b7829b9e | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@nokia.com> | Tue Jun 15 10:35:58 2010 +0300 |
committer | Johan Hedberg <johan.hedberg@nokia.com> | Tue Jun 15 10:35:58 2010 +0300 |
tree | 33a11e8f7fde86b8994bcddfd9fa756950dc300c | |
parent | a90f0dfe8c079aab982ae2e67a05a7938c780d9d [diff] |
Make use of device_get_agent() in device_request_authentication()
diff --git a/src/device.c b/src/device.c index 170902e..11b1fd2 100644 --- a/src/device.c +++ b/src/device.c
@@ -2267,11 +2267,7 @@ DBG("%s: requesting agent authentication", device->path); - agent = device->agent; - - if (!agent) - agent = adapter_get_agent(device->adapter); - + agent = device_get_agent(device); if (!agent) { error("No agent available for %u request", type); return -EPERM;