diff options
author | marius <marius@FreeBSD.org> | 2004-08-15 20:18:54 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2004-08-15 20:18:54 +0000 |
commit | 27538c48d51f48dbcff724055d89fc7e9cf5d155 (patch) | |
tree | 676508001d897de2d527b44ae736c13182bb70f2 /usr.sbin/eeprom | |
parent | 247d04d3f768f2ff09b5db7988f442635d2e8f08 (diff) | |
download | FreeBSD-src-27538c48d51f48dbcff724055d89fc7e9cf5d155.zip FreeBSD-src-27538c48d51f48dbcff724055d89fc7e9cf5d155.tar.gz |
Save on one variable in ofwo_action(). Leftover from an older version of
this function which needed the handle of the /options node more than once.
Diffstat (limited to 'usr.sbin/eeprom')
-rw-r--r-- | usr.sbin/eeprom/ofw_options.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/eeprom/ofw_options.c b/usr.sbin/eeprom/ofw_options.c index a840d01..8bf51ea 100644 --- a/usr.sbin/eeprom/ofw_options.c +++ b/usr.sbin/eeprom/ofw_options.c @@ -278,7 +278,6 @@ ofwo_action(const char *prop, const char *val) { void *pbuf; int fd, len, pblen, rv; - phandle_t optnode; struct ofwo_extabent *ex; pblen = 0; @@ -290,8 +289,7 @@ ofwo_action(const char *prop, const char *val) fd = ofw_open(O_RDWR); else fd = ofw_open(O_RDONLY); - optnode = ofw_optnode(fd); - len = ofw_getprop_alloc(fd, optnode, prop, &pbuf, &pblen, 1); + len = ofw_getprop_alloc(fd, ofw_optnode(fd), prop, &pbuf, &pblen, 1); if (len < 0) { rv = EX_UNAVAILABLE; goto out; |