Fix the decode_get_sensor_reading_resp method

In the decode_get_sensor_reading_resp method, sensor_data_size is a
parameter of type out, so before assignment, it cannot be compared
with the sensor_data_size parameter in the response.

Resolves : https://github.com/openbmc/pldm/issues/28

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: If6c9ecb5ef954c6e7da48d2fda77adddc5f2202b
diff --git a/libpldm/platform.c b/libpldm/platform.c
index 8e33239..8b83747 100644
--- a/libpldm/platform.c
+++ b/libpldm/platform.c
@@ -1452,9 +1452,6 @@
 	if (response->sensor_data_size > PLDM_SENSOR_DATA_SIZE_SINT32) {
 		return PLDM_ERROR_INVALID_DATA;
 	}
-	if (response->sensor_data_size > *sensor_data_size) {
-		return PLDM_ERROR_INVALID_LENGTH;
-	}
 
 	*sensor_data_size = response->sensor_data_size;
 	*sensor_operational_state = response->sensor_operational_state;