lkml.org 
[lkml]   [2016]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:x86/boot] x86/boot: Clean up pointer casting

* Borislav Petkov <bp@alien8.de> wrote:

> This can be simplified even further:
>
> ---
> From: Borislav Petkov <bp@suse.de>
> Date: Fri, 6 May 2016 10:43:21 +0200
> Subject: [PATCH] x86/boot: Simplify pointer casting in
> choose_random_location()
>
> Pass them down as unsigned long directly and get rid of more casting and
> assignments.
>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> Cc: Kees Cook <keescook@chromium.org>

> arch/x86/boot/compressed/misc.h | 8 ++++----
> 3 files changed, 12 insertions(+), 16 deletions(-)

Great, thanks!

Ingo

\
 
 \ /
  Last update: 2016-05-06 12:21    [W:0.080 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site