win-pvdrivers

diff xenvbd/xenvbd_storport.c @ 979:8f483a2b2991

Fix up PREfast warnings
author James Harper <james.harper@bendigoit.com.au>
date Sun Apr 15 19:47:10 2012 +1000 (2012-04-15)
parents 941699790045
children e9011a1ba5bb d9da5f8f7431
line diff
     1.1 --- a/xenvbd/xenvbd_storport.c	Sun Apr 15 18:57:34 2012 +1000
     1.2 +++ b/xenvbd/xenvbd_storport.c	Sun Apr 15 19:47:10 2012 +1000
     1.3 @@ -1949,8 +1949,10 @@ XenVbd_HwStorAdapterControl(PVOID Device
     1.4      }
     1.5      /* increase the tag every time we stop/start to track where the gref's came from */
     1.6      xvdd->grant_tag++;
     1.7 -    if (XenVbd_InitFromConfig(xvdd) != SP_RETURN_FOUND)
     1.8 +    if (XenVbd_InitFromConfig(xvdd) != SP_RETURN_FOUND) {
     1.9 +      #pragma warning(suppress:28159)
    1.10        KeBugCheckEx(DATA_COHERENCY_EXCEPTION, 0, (ULONG_PTR)xvdd, 0, 0);
    1.11 +    }
    1.12      xvdd->ring_detect_state = RING_DETECT_STATE_NOT_STARTED;
    1.13      
    1.14      //XenVbd_StartRingDetection(xvdd);