netlink: remove return value check for netlink_broadcast()
Amit Kamath [Fri, 14 Dec 2012 12:19:26 +0000 (17:19 +0530)]
Based on commit to change return value for netlink_broadcast
commit ff491a7334acfd74e515c896632e37e401f52676
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Date:   Thu Feb 5 23:56:36 2009 -0800

Change-Id: I2adcfcb9f877effa2b04db74c8e90af36604e885
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/171416
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

drivers/thermal/thermal_sys.c

index 5c8441b..7cedd86 100644 (file)
@@ -1844,10 +1844,7 @@ int thermal_generate_netlink_event(u32 orig, enum events event)
                return result;
        }
 
-       result = genlmsg_multicast(skb, 0, thermal_event_mcgrp.id, GFP_ATOMIC);
-       if (result)
-               pr_info("failed to send netlink event:%d\n", result);
-
+       genlmsg_multicast(skb, 0, thermal_event_mcgrp.id, GFP_ATOMIC);
        return result;
 }
 EXPORT_SYMBOL(thermal_generate_netlink_event);