mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexey Dobriyan <adobriyan@gmail.com>
To: Jesper Juhl <juhl-lkml@dif.dk>
Cc: Marcel Holtmann <marcel@holtmann.org>,
	bluez-devel@lists.sf.net, Maxim Krasnyansky <maxk@qualcomm.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bluetooth: kill redundant NULL checks and casts before kfree
Date: Tue, 10 May 2005 23:28:15 +0400	[thread overview]
Message-ID: <200505102328.15734.adobriyan@mail.ru> (raw)
In-Reply-To: <Pine.LNX.4.62.0505102100150.2386@dragon.hyggekrogen.localhost>

On Tuesday 10 May 2005 23:05, Jesper Juhl wrote:

> There's no need to check for NULL before calling kfree() on a pointer, and
> since kfree() takes a void* argument there's no need to cast pointers to
> other types before passing them to kfree().

> +	kfree(hdev->driver_data)	

This won't compile.

  reply	other threads:[~2005-05-10 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-10 19:05 Jesper Juhl
2005-05-10 19:28 ` Alexey Dobriyan [this message]
2005-05-10 19:49   ` Jesper Juhl
2005-05-11 10:55     ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200505102328.15734.adobriyan@mail.ru \
    --to=adobriyan@gmail.com \
    --cc=bluez-devel@lists.sf.net \
    --cc=juhl-lkml@dif.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=maxk@qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®