diff --git a/usr.sbin/mpsutil/mps_cmd.c b/usr.sbin/mpsutil/mps_cmd.c index 7cef93de08ce..6053c9265261 100644 --- a/usr.sbin/mpsutil/mps_cmd.c +++ b/usr.sbin/mpsutil/mps_cmd.c @@ -365,8 +365,7 @@ mps_read_config_page(int fd, U8 PageType, U8 PageNumber, U32 PageAddress, req.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; req.PageAddress = PageAddress; req.Header = header; - req.Header.PageLength = reply.Header.PageLength; - if (reply.Header.PageLength == 0) + if (req.Header.PageLength == 0) req.Header.PageLength = 4; len = req.Header.PageLength * 4;