A guest at a Brooklyn motor inn forgot to pack his gun at checkout, so he foolishly called the motel and let them know he left it under the mattress, cops said Monday.