[UTC][peripheral-io][Non-ACR] Fix adc_read_n2 test case
authorKonrad Kuchciak <k.kuchciak@samsung.com>
Tue, 4 Sep 2018 04:33:35 +0000 (06:33 +0200)
committerKonrad Kuchciak <k.kuchciak@samsung.com>
Tue, 4 Sep 2018 04:43:04 +0000 (06:43 +0200)
Change-Id: I1188581e92d6cb5df976059a92174a6af17bf7b4
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
src/utc/peripheral-io/utc-peripheral-io-adc.c

index 5c9876b0c0b10d7ed0a0116310cabfbb25b1eb91..9b6629911d8d87e0f51bab3a239f68bbf7af6177 100644 (file)
@@ -294,10 +294,8 @@ int utc_peripheral_io_adc_peripheral_adc_read_n2(void)
 
        peripheral_adc_h adc_h = NULL;
 
-       uint32_t value;
-
        if (adc_feature == false) {
-               ret = peripheral_adc_read(adc_h, &value);
+               ret = peripheral_adc_read(adc_h, NULL);
                if (ret != PERIPHERAL_ERROR_NOT_SUPPORTED)
                        return 1;
 
@@ -306,7 +304,7 @@ int utc_peripheral_io_adc_peripheral_adc_read_n2(void)
                if (ret != PERIPHERAL_ERROR_NONE)
                        return 1;
 
-               ret = peripheral_adc_read(adc_h, &value);
+               ret = peripheral_adc_read(adc_h, NULL);
                if (ret != PERIPHERAL_ERROR_INVALID_PARAMETER) {
                        peripheral_adc_close(adc_h);
                        return 1;