mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
tcm_fc: move the dereference below the NULL test
The dereference should be moved below the NULL test. spatch with a semantic match is used to found this. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
d81cb44726
commit
7875f17908
1 changed files with 2 additions and 1 deletions
|
|
@ -327,11 +327,12 @@ drop:
|
|||
*/
|
||||
void ft_invl_hw_context(struct ft_cmd *cmd)
|
||||
{
|
||||
struct fc_seq *seq = cmd->seq;
|
||||
struct fc_seq *seq;
|
||||
struct fc_exch *ep = NULL;
|
||||
struct fc_lport *lport = NULL;
|
||||
|
||||
BUG_ON(!cmd);
|
||||
seq = cmd->seq;
|
||||
|
||||
/* Cleanup the DDP context in HW if DDP was setup */
|
||||
if (cmd->was_ddp_setup && seq) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue