summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/eeprom/ofw_options.c4
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;
OpenPOWER on IntegriCloud