Skip to content

Commit ed604b2

Browse files
authored
Update cypress5525.c to fix indent
We actually always want to call print_pd_response_code for verbose debugging purposes, so we do not want to wrap this print in the error check
1 parent 1302ea6 commit ed604b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

board/hx30/cypress5525.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,13 +971,13 @@ void cyp5525_port_int(int controller, int port)
971971
int port_idx = (controller << 1) + port;
972972
/* enum pd_msg_type sop_type; */
973973
rv = i2c_read_offset16_block(i2c_port, addr_flags, CYP5525_PORT_PD_RESPONSE_REG(port), data2, 4);
974-
if (rv != EC_SUCCESS) {
974+
if (rv != EC_SUCCESS)
975975
CPRINTS("PORT_PD_RESPONSE_REG failed");
976-
print_pd_response_code(controller,
976+
977+
print_pd_response_code(controller,
977978
port,
978979
data2[0],
979980
data2[1]);
980-
}
981981

982982
response_len = data2[1];
983983
switch (data2[0]) {

0 commit comments

Comments
 (0)