]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/sd-mmc.git/commitdiff
KW fix correction
authorMahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Sun, 29 Sep 2019 15:42:48 +0000 (11:42 -0400)
committerSivaraj R <sivaraj@ti.com>
Mon, 30 Sep 2019 03:02:10 +0000 (22:02 -0500)
src/v2/MMCSD_v2.c

index 5f02c645275375471b0090ae55c4afd15d42c7be..ccec1bed8f653b873902b1a4557b930a0b0e1fd4 100644 (file)
@@ -3275,7 +3275,7 @@ static MMCSD_Error MMCSD_v2_setBusWidth(MMCSD_Handle handle, const uint32_t *bus
     MMCSD_v2_Transaction        transaction;
 
     /* Input parameter validation */
-    if ((handle == NULL) && (busWidth != NULL))
+    if ((handle != NULL) && (busWidth != NULL))
     {
         /* Get the pointer to the object and hwAttrs */
         object = (MMCSD_v2_Object *)((MMCSD_Config *) handle)->object;