Re: [PATCH] ath9k: remove useless if-before-kfree; correct misleading indentation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jim Meyering
Date: Saturday, August 23, 2008 - 4:28 am

Marcel Holtmann <holtmann@linux.intel.com> wrote:

Hi Marcel,

Thanks for the support.

Yes, with glibc, free(NULL) is a no-op, and POSIX has required that
behavior for long enough that *all* implementations of free on reasonable
porting targets are NULL-safe these days.  There has been plenty of
discussion as I've helped a few projects clean up in this regard, e.g.,

  http://thread.gmane.org/gmane.comp.version-control.git/74187
  http://thread.gmane.org/gmane.emacs.devel/98144
  http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/12712

Here are most of the projects that have endured this janitorial work:
    git
    emacs
    glibc
    gnulib
    coreutils
    freeIPA
    libvirt
    util-linux-ng
    idutils

There's even a tool to help ensure that no new useless if-before-kfree
tests sneak back in later.

    http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=build-aux/useless-if-before-...
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ath9k: add harmlessly-omitted braces, Jim Meyering, (Fri Aug 22, 11:49 pm)
Re: [PATCH] ath9k: add harmlessly-omitted braces, Marcel Holtmann, (Sat Aug 23, 3:02 am)
Re: [PATCH] ath9k: remove useless if-before-kfree; correct ..., Jim Meyering, (Sat Aug 23, 4:28 am)