Selfadjointness and conservation laws of a generalized Burgers equation