Selaa lähdekoodia

Merge "msm: camera: eeprom: Correct EEPROM Read return" into camera-kernel.lnx.4.0

Camera Software Integration 5 vuotta sitten
vanhempi
sitoutus
64c7aa1d84
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      drivers/cam_sensor_module/cam_eeprom/cam_eeprom_core.c

+ 2 - 2
drivers/cam_sensor_module/cam_eeprom/cam_eeprom_core.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/module.h>
@@ -108,7 +108,7 @@ static int cam_eeprom_read_memory(struct cam_eeprom_ctrl_t *e_ctrl,
 				emap[j].mem.addr_type,
 				emap[j].mem.data_type,
 				emap[j].mem.valid_size);
-			if (rc) {
+			if (rc < 0) {
 				CAM_ERR(CAM_EEPROM, "read failed rc %d",
 					rc);
 				return rc;