Re: [PATCH] staging: sm750fb: replace twoToPowerOfx with shift operator

2015-09-24 Thread Michał Kępień
> The function twoToPowerOfx that iteratively caclulates the power of 2 > may be replaced with shift operator calculates > -inline unsigned int twoToPowerOfx(unsigned long x) > -{ > - unsigned long i; > - unsigned long result = 1; > - > - for (i = 1; i <= x; i++) > - resul

[PATCH] staging: sm750fb: replace twoToPowerOfx with shift operator

2015-09-24 Thread Mike Rapoport
The function twoToPowerOfx that iteratively caclulates the power of 2 may be replaced with shift operator Signed-off-by: Mike Rapoport --- drivers/staging/sm750fb/ddk750_chip.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_c