mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
staging: greybus: power_supply: remove unnecessary parentheses in return
return is not a function, so the parentheses around the returned expressions are not needed. Remove them to follow kernel coding style and silence checkpatch.pl RETURN_PARENTHESES warnings. Verified with checkpatch.pl - no errors or warnings. Compiled the power_supply object successfully. Signed-off-by: Tomasz Unger <tomasz.unger@yahoo.pl> Acked-by: Rui Miguel Silva <rui.silva@linaro.org> Link: https://patch.msgid.link/20260615-greybus-power-supply-return-parens-v1-1-dcad9dabfe79@yahoo.pl Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
33d8c7b794
commit
443063a342
|
|
@ -336,7 +336,7 @@ static int is_psy_prop_writeable(struct gb_power_supply *gbpsy,
|
|||
|
||||
static int is_prop_valint(enum power_supply_property psp)
|
||||
{
|
||||
return ((psp < POWER_SUPPLY_PROP_MODEL_NAME) ? 1 : 0);
|
||||
return (psp < POWER_SUPPLY_PROP_MODEL_NAME) ? 1 : 0;
|
||||
}
|
||||
|
||||
static void next_interval(struct gb_power_supply *gbpsy)
|
||||
|
|
@ -423,7 +423,7 @@ static void check_changed(struct gb_power_supply *gbpsy,
|
|||
static int total_props(struct gb_power_supply *gbpsy)
|
||||
{
|
||||
/* this return the intval plus the strval properties */
|
||||
return (gbpsy->properties_count + gbpsy->properties_count_str);
|
||||
return gbpsy->properties_count + gbpsy->properties_count_str;
|
||||
}
|
||||
|
||||
static void prop_append(struct gb_power_supply *gbpsy,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user