All of lore.kernel.org
 help / color / mirror / Atom feed
From: Emil Velikov <emil.l.velikov@gmail.com>
To: Jan Vesely <jan.vesely@rutgers.edu>, dri-devel@lists.freedesktop.org
Cc: emil.l.velikov@gmail.com
Subject: Re: [PATCH libdrm 4/8] xf86drmSL: Fix neighbour printing
Date: Fri, 20 Mar 2015 17:38:34 +0000	[thread overview]
Message-ID: <550C5B1A.3060706@gmail.com> (raw)
In-Reply-To: <1425060448-5315-5-git-send-email-jan.vesely@rutgers.edu>

On 27/02/15 18:07, Jan Vesely wrote:
> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
> ---
>  xf86drmSL.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/xf86drmSL.c b/xf86drmSL.c
> index acddb54..2160bb8 100644
> --- a/xf86drmSL.c
> +++ b/xf86drmSL.c
> @@ -266,11 +266,14 @@ int drmSLLookupNeighbors(void *l, unsigned long key,
>      SkipListPtr   list = (SkipListPtr)l;
>      SLEntryPtr    update[SL_MAX_LEVEL + 1];
>      int           retcode = 0;
> +    SLEntryPtr    entry;
> +
> +    entry = SLLocate(list, key, update);
>  
>      *prev_key   = *next_key   = key;
>      *prev_value = *next_value = NULL;
> -	
> -    if (update[0]) {
> +
> +    if (entry && update[0]) {
From a very brief look at git log, the entry check should not be needed.
Must admit that I've not looked at all in the implementation of either
SLLocate or drmSLLookupNeighbors.

That said it seems that none of the three files
(xf86drm{SL,Hash,Random}) has been build as a program for a while. Maybe
we could split it out as a standalone test and let it churn at make
check time ?

Cheers,
Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2015-03-20 17:38 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 18:07 [PATCH libdrm 0/8] Warnings fixes Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 1/8] Add static qualifier to local functions Jan Vesely
2015-03-13 23:07   ` Emil Velikov
2015-03-14  0:08     ` Jan Vesely
2015-03-14 13:12       ` Emil Velikov
2015-03-15 18:09         ` [PATCH libdrm v2 " Jan Vesely
2015-03-16 21:44           ` Emil Velikov
2015-02-27 18:07 ` [PATCH libdrm 2/8] tests: String literals are const char * Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 3/8] Fix type-limits, pointer-arith and sign-compare warnings Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 4/8] xf86drmSL: Fix neighbour printing Jan Vesely
2015-03-15 18:31   ` Jan Vesely
2015-03-20 17:38   ` Emil Velikov [this message]
2015-03-20 18:01     ` Jan Vesely
2015-03-20 22:00       ` Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 5/8] Fix aliasing and switch-enum warnings Jan Vesely
2015-03-13 23:15   ` Emil Velikov
2015-02-27 18:07 ` [PATCH libdrm 6/8] dristat: Handle DRM_CONSISTENT Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 7/8] Fix unused, and unused-but-set variables warnings Jan Vesely
2015-03-13 22:56   ` Emil Velikov
2015-03-13 23:37     ` Jan Vesely
2015-03-14 13:14       ` Emil Velikov
2015-02-27 18:07 ` [PATCH libdrm 8/8] Fix unused function warnings Jan Vesely
2015-03-18 18:37   ` [PATCH libdrm v2 " Jan Vesely
2015-03-18 18:37     ` [PATCH libdrm 9/8] Remove drmSetDebugMsgFunction and related infrastructure Jan Vesely
2015-03-20 21:06       ` Emil Velikov
2015-03-20 21:42         ` Jan Vesely
2015-03-20 17:33     ` [PATCH libdrm v2 8/8] Fix unused function warnings Emil Velikov
2015-02-27 22:27 ` [PATCH libdrm 0/8] Warnings fixes Emil Velikov
2015-03-13 23:20   ` Emil Velikov
2015-03-14  0:10     ` Jan Vesely

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=550C5B1A.3060706@gmail.com \
    --to=emil.l.velikov@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jan.vesely@rutgers.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.