lkml.org 
[lkml]   [2012]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: core: Add intermediate cast to uintptr_t before casting to pointer
On Mon, Jul 30, 2012 at 07:47:13AM +0800, Axel Lin wrote:

> _notifier_call_chain(rdev, REGULATOR_EVENT_VOLTAGE_CHANGE,
> - (void *)best_val);
> + (void *)(uintptr_t)best_val);

This also looks problematic, you should never need to cast a pointer to
or from void.


\
 
 \ /
  Last update: 2012-07-30 18:21    [from the cache]
©2003-2011 Jasper Spaans