1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00

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.
This commit is contained in:
Marius Strobl 2004-08-15 20:18:54 +00:00
parent ec0834c166
commit 45ad3f1162
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133768

View File

@ -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;