OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Cleanup snmp6_alloc_dev()
Re: [PATCH] Cleanup snmp6_alloc_dev() [message #21940 is a reply to message #21870] Thu, 18 October 2007 04:25 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Wed, 17 Oct 2007 14:44:44 +0400

> This functions is never called with NULL or not setup argument,
> so the checks inside are redundant.
> 
> Also, the return value is always -ENOMEM, so no need in 
> additional variable for this.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

Applied.
 
Read Message
Read Message
Previous Topic: [PATCH] Fix return type for snmp6_free_dev()
Next Topic: [PATCH] Consolidate creation of kmem caches with "calculated" names
Goto Forum:
  


Current Time: Wed Aug 27 10:23:15 GMT 2025

Total time taken to generate the page: 0.10701 seconds