@@ -2339,7 +2339,7 @@ static int brcmnand_write_oob_raw(struct nand_chip *chip, int page)
2339
2339
}
2340
2340
2341
2341
static int brcmnand_exec_instr (struct brcmnand_host * host , int i ,
2342
- const struct nand_operation * op )
2342
+ const struct nand_operation * op )
2343
2343
{
2344
2344
const struct nand_op_instr * instr = & op -> instrs [i ];
2345
2345
struct brcmnand_controller * ctrl = host -> ctrl ;
@@ -2353,7 +2353,7 @@ static int brcmnand_exec_instr(struct brcmnand_host *host, int i,
2353
2353
* (WAITRDY excepted).
2354
2354
*/
2355
2355
last_op = ((i == (op -> ninstrs - 1 )) && (instr -> type != NAND_OP_WAITRDY_INSTR )) ||
2356
- ((i == (op -> ninstrs - 2 )) && (op -> instrs [i + 1 ].type == NAND_OP_WAITRDY_INSTR ));
2356
+ ((i == (op -> ninstrs - 2 )) && (op -> instrs [i + 1 ].type == NAND_OP_WAITRDY_INSTR ));
2357
2357
2358
2358
switch (instr -> type ) {
2359
2359
case NAND_OP_CMD_INSTR :
@@ -2398,21 +2398,21 @@ static int brcmnand_exec_instr(struct brcmnand_host *host, int i,
2398
2398
2399
2399
static int brcmnand_op_is_status (const struct nand_operation * op )
2400
2400
{
2401
- if (( op -> ninstrs == 2 ) &&
2402
- ( op -> instrs [0 ].type == NAND_OP_CMD_INSTR ) &&
2403
- ( op -> instrs [0 ].ctx .cmd .opcode == NAND_CMD_STATUS ) &&
2404
- ( op -> instrs [1 ].type == NAND_OP_DATA_IN_INSTR ) )
2401
+ if (op -> ninstrs == 2 &&
2402
+ op -> instrs [0 ].type == NAND_OP_CMD_INSTR &&
2403
+ op -> instrs [0 ].ctx .cmd .opcode == NAND_CMD_STATUS &&
2404
+ op -> instrs [1 ].type == NAND_OP_DATA_IN_INSTR )
2405
2405
return 1 ;
2406
2406
2407
2407
return 0 ;
2408
2408
}
2409
2409
2410
2410
static int brcmnand_op_is_reset (const struct nand_operation * op )
2411
2411
{
2412
- if (( op -> ninstrs == 2 ) &&
2413
- ( op -> instrs [0 ].type == NAND_OP_CMD_INSTR ) &&
2414
- ( op -> instrs [0 ].ctx .cmd .opcode == NAND_CMD_RESET ) &&
2415
- ( op -> instrs [1 ].type == NAND_OP_WAITRDY_INSTR ) )
2412
+ if (op -> ninstrs == 2 &&
2413
+ op -> instrs [0 ].type == NAND_OP_CMD_INSTR &&
2414
+ op -> instrs [0 ].ctx .cmd .opcode == NAND_CMD_RESET &&
2415
+ op -> instrs [1 ].type == NAND_OP_WAITRDY_INSTR )
2416
2416
return 1 ;
2417
2417
2418
2418
return 0 ;
@@ -2440,8 +2440,7 @@ static int brcmnand_exec_op(struct nand_chip *chip,
2440
2440
* status = ret & 0xFF ;
2441
2441
2442
2442
return 0 ;
2443
- }
2444
- else if (brcmnand_op_is_reset (op )) {
2443
+ } else if (brcmnand_op_is_reset (op )) {
2445
2444
ret = brcmnand_reset (host );
2446
2445
if (ret < 0 )
2447
2446
return ret ;
0 commit comments