extra: cleanup handling "if (foo & 0x1) {"
commit04018487e94be726669eac49e28ee1d79586dc38
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 16 Feb 2018 09:54:58 +0000 (16 12:54 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 16 Feb 2018 09:54:58 +0000 (16 12:54 +0300)
treeef68a25d75df38d6ff2d233d65169a71b6028f4c
parent04d560015ac891d5ac30869b9b3bc18863f1bfdd
extra: cleanup handling "if (foo & 0x1) {"

These two chunks are basically the same.  I've moved them to their own
function to fix cut down on the duplicate code...  And, oh, I spot a copy
and paste bug in the first block where I say "expr->left" instead of
"expr->right", so it's a bug fix as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_extra.c