/* returns SUCCESS if it successfully received a message notification and copied it into the receive buffer.  */
static s32 e1000_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size)
/* returns SUCCESS if it successfully received a message notification and copied it into the receive buffer.  */
static s32 e1000_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size)
{
	struct e1000_mbx_info *mbx = &hw->mbx;
	s32 ret_val = -E1000_ERR_MBX;
	if (!mbx->ops.read)
		goto out;
	ret_val = e1000_poll_for_msg(hw);
	if (!ret_val)
		ret_val = mbx->ops.read(hw, msg, size);
out:
	return ret_val;
}