Skip to content

Commit

Permalink
staging: fsl-mc: be consistent when checking strcmp() return
Browse files Browse the repository at this point in the history
Stick to one way of checking the return code of strcmp(): use '!'.
This was suggested in a review comment.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Laurentiu Tudor authored and Greg Kroah-Hartman committed Jun 29, 2017
1 parent 714cc27 commit b93ad9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/fsl-mc/bus/fsl-mc-allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

static bool __must_check fsl_mc_is_allocatable(const char *obj_type)
{
return strcmp(obj_type, "dpbp") == 0 ||
strcmp(obj_type, "dpmcp") == 0 ||
strcmp(obj_type, "dpcon") == 0;
return strcmp(obj_type, "dpbp") ||
strcmp(obj_type, "dpmcp") ||
strcmp(obj_type, "dpcon");
}

/**
Expand Down

0 comments on commit b93ad9a

Please sign in to comment.