diff options
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/thermal_core.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 87e0b0782023..48491d1a81d6 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c | |||
@@ -1759,11 +1759,7 @@ int thermal_generate_netlink_event(struct thermal_zone_device *tz, | |||
1759 | thermal_event->event = event; | 1759 | thermal_event->event = event; |
1760 | 1760 | ||
1761 | /* send multicast genetlink message */ | 1761 | /* send multicast genetlink message */ |
1762 | result = genlmsg_end(skb, msg_header); | 1762 | genlmsg_end(skb, msg_header); |
1763 | if (result < 0) { | ||
1764 | nlmsg_free(skb); | ||
1765 | return result; | ||
1766 | } | ||
1767 | 1763 | ||
1768 | result = genlmsg_multicast(&thermal_event_genl_family, skb, 0, | 1764 | result = genlmsg_multicast(&thermal_event_genl_family, skb, 0, |
1769 | 0, GFP_ATOMIC); | 1765 | 0, GFP_ATOMIC); |