Small mask calculation optimization

Get rid of loop to calculate bitmask where 2^n-1 will suffice.

Change-Id: I1d77a5c3753207663531efb407f6114ccabb1220
1 file changed