lkml.org 
[lkml]   [2015]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 3/3] staging: lustre: Less function calls in class_register_type() after error detection
    On Thu, Nov 05, 2015 at 01:20:33PM +0100, SF Markus Elfring wrote:
    > From: Markus Elfring <elfring@users.sourceforge.net>
    > Date: Thu, 5 Nov 2015 12:48:58 +0100
    >
    > The functions "kfree" and "kobject_put" were called in a few cases by the
    > function "class_register_type" during error handling even if the passed
    > variable contained a null pointer.
    >
    > This implementation detail could be improved by the adjustment of
    > jump targets.
    >
    > Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    > ---
    > drivers/staging/lustre/lustre/obdclass/genops.c | 26 +++++++++++++++----------
    > 1 file changed, 16 insertions(+), 10 deletions(-)

    Does not apply to my staging-next branch :(



    \
     
     \ /
      Last update: 2015-11-25 18:01    [W:3.613 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site