Skip to content

Commit b93ad9a

Browse files
tudorlgregkh
authored andcommitted
staging: fsl-mc: be consistent when checking strcmp() return
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>
1 parent 714cc27 commit b93ad9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/staging/fsl-mc/bus/fsl-mc-allocator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
static bool __must_check fsl_mc_is_allocatable(const char *obj_type)
2121
{
22-
return strcmp(obj_type, "dpbp") == 0 ||
23-
strcmp(obj_type, "dpmcp") == 0 ||
24-
strcmp(obj_type, "dpcon") == 0;
22+
return strcmp(obj_type, "dpbp") ||
23+
strcmp(obj_type, "dpmcp") ||
24+
strcmp(obj_type, "dpcon");
2525
}
2626

2727
/**

0 commit comments

Comments
 (0)