[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130204193749.GA27411@blackmetal.musicnaut.iki.fi>
Date: Mon, 4 Feb 2013 21:37:49 +0200
From: Aaro Koskinen <aaro.koskinen@....fi>
To: Peter Huewe <peterhuewe@....de>
Cc: Arnaud Patard <arnaud.patard@...-net.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Miguel Gómez <magomez@...lia.com>,
Sam Hansen <solid.se7en@...il.com>, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 01/10] staging/xgifb: Simplify XGI_GetRatePtrCRT2
Hi,
On Sun, Feb 03, 2013 at 10:54:30PM +0100, Peter Huewe wrote:
> Since the smaller LCDRefreshIndex is contained identically in LCDARefreshIndex
> we can simply use LCDARefreshIndex and skip the if/else.
>
> Since LCDARefreshIndex is only used readonly and contains only small
> unsigned values we also change its declaration to const u8.
>
> In order to prevent an out-of-bounds access I changed the mask from 0x0F
> to 0x07 and added a dummy value.
>
> Signed-off-by: Peter Huewe <peterhuewe@....de>
> ---
> Please apply this series after my previous one
> [PATCH 1/6] staging/xgifb: Remove unused variables and dead assignments
> [PATCH 2/6] staging/xgifb: Remove unused variable
> [PATCH 3/6] staging/xgifb: Remove unused variable and dead assignment
> [PATCH 4/6] staging/xgifb: Remove unused variables
> [PATCH 5/6] staging/xgifb: Remove redundant if statement
> [PATCH 6/6] staging/xgifb: remove unused variables
I think both of these series are good. I boot tested them with Z9/XG21,
and at least fb console seems to work fine. I also checked compilation
for warnings with GCC+sparse and could not see any. So:
Tested-by: Aaro Koskinen <aaro.koskinen@....fi>
for all of the patches.
Thanks,
A.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists