Skip to content

Commit 52674f5

Browse files
Colin Ian Kingdlezcano
authored andcommitted
thermal: core: remove redundant initialization of variable ret
The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Zhang Rui <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5b8583d commit 52674f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/thermal_netlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ static int thermal_genl_cmd_dumpit(struct sk_buff *skb,
546546
struct param p = { .msg = skb };
547547
const struct genl_dumpit_info *info = genl_dumpit_info(cb);
548548
int cmd = info->ops->cmd;
549-
int ret = -EMSGSIZE;
549+
int ret;
550550
void *hdr;
551551

552552
hdr = genlmsg_put(skb, 0, 0, &thermal_gnl_family, 0, cmd);

0 commit comments

Comments
 (0)