[Spice-devel] [PATCH qxl-wddm-dod v6 3/4] Code Analysis and style fix

Sameeh Jubran sameeh at daynix.com
Wed Sep 28 12:20:38 UTC 2016


On Wed, Sep 28, 2016 at 3:06 PM, Frediano Ziglio <fziglio at redhat.com> wrote:

> >
> > Based on a patch by Sandy Stutsman <sstutsma at redhat.com>
> >
> > Signed-off-by: Sameeh Jubran <sameeh at daynix.com>
>
> Acked-by: Frediano Ziglio <fziglio at redhat.com>
>
> > ---
> >  qxldod/QxlDod.cpp | 9 +++++----
> >  1 file changed, 5 insertions(+), 4 deletions(-)
> >
> > diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
> > index 2bc6b77..577b4ff 100755
> > --- a/qxldod/QxlDod.cpp
> > +++ b/qxldod/QxlDod.cpp
> > @@ -1493,7 +1493,7 @@ NTSTATUS QxlDod::CommitVidPn(_In_ CONST
> > DXGKARG_COMMITVIDPN* CONST pCommitVidPn)
> >
> >  CommitVidPnExit:
> >
> > -    NTSTATUS TempStatus;
> > +    NTSTATUS TempStatus(STATUS_SUCCESS);
> >      UNREFERENCED_PARAMETER(TempStatus);
> >
> >      if ((pVidPnSourceModeSetInterface != NULL) &&
> > @@ -1851,7 +1851,7 @@ NTSTATUS QxlDod::WriteHWInfoStr(_In_ HANDLE
> > DevInstRegKeyHandle, _In_ PCWSTR psz
> >  }
> >
> >  QXL_PAGED
> > -NTSTATUS QxlDod::RegisterHWInfo(ULONG Id)
> > +NTSTATUS QxlDod::RegisterHWInfo(_In_ ULONG Id)
> >  {
> >      PAGED_CODE();
> >
> > @@ -3247,7 +3247,7 @@ NTSTATUS QxlDevice::GetCurrentMode(ULONG* pMode)
> >  }
> >
> >  QXL_PAGED
> > -NTSTATUS QxlDevice::SetPowerState(_In_ DEVICE_POWER_STATE
> DevicePowerState,
> > DXGK_DISPLAY_INFORMATION* pDispInfo)
> > +NTSTATUS QxlDevice::SetPowerState(DEVICE_POWER_STATE DevicePowerState,
> > DXGK_DISPLAY_INFORMATION* pDispInfo)
> >  {
> >      PAGED_CODE();
> >      DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
>
> After merging I realize that in a previous patch the same change
> was done for VgaDevice::SetPowerState.
> Was this removal intentional or a mistake?
>
A mistake, what should we do?

>
> Frediano
>



-- 
Respectfully,
*Sameeh Jubran*
*Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>*
*Junior Software Engineer @ Daynix <http://www.daynix.com>.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160928/4d9cc9f4/attachment.html>


More information about the Spice-devel mailing list