forked from auracaster/openocd
helper/align.h: use it
Use the new helper to make the code more readable. Change-Id: I11b2a79dbc6f93f6cfde382bcc00dd7ff710d908 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6375 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <helper/align.h>
|
||||
#include <helper/time_support.h>
|
||||
|
||||
#include "mips32.h"
|
||||
@@ -658,7 +659,7 @@ static int mips32_pracc_synchronize_cache(struct mips_ejtag *ejtag_info,
|
||||
goto exit; /* Nothing to do */
|
||||
|
||||
/* make sure clsiz is power of 2 */
|
||||
if (clsiz & (clsiz - 1)) {
|
||||
if (!IS_PWR_OF_2(clsiz)) {
|
||||
LOG_DEBUG("clsiz must be power of 2");
|
||||
ctx.retval = ERROR_FAIL;
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user