drivers: led: shell: avoid implicit conversion to boolean
Use a clear and style-adherent condition format. Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
This commit is contained in:
committed by
Anas Nashif
parent
24842b852a
commit
956063604b
@@ -29,7 +29,7 @@ static int parse_common_args(const struct shell *sh, char **argv,
|
||||
char *end_ptr;
|
||||
|
||||
*dev = shell_device_get_binding(argv[arg_idx_dev]);
|
||||
if (!*dev) {
|
||||
if (*dev == NULL) {
|
||||
shell_error(sh,
|
||||
"LED device %s not found", argv[arg_idx_dev]);
|
||||
return -ENODEV;
|
||||
|
||||
Reference in New Issue
Block a user