From 45ad3f1162cea6f33d68a176d4d5bc4b2f598c6e Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Sun, 15 Aug 2004 20:18:54 +0000 Subject: [PATCH] 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. --- usr.sbin/eeprom/ofw_options.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.sbin/eeprom/ofw_options.c b/usr.sbin/eeprom/ofw_options.c index a840d01d441a..8bf51ea59803 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;