Serial Integer Convert Issue

  return serialdata;
  inbyte = 0;

What is the reason for the useless code after the return statement?