You might want to combine two lines into one.
return read_mpidr() & 0x0FF;