Hernia surgery is designed to repair the hernia; it may result in a flatter stomach if the hernia causes bulging, but it is not a procedure aimed at flattening the abdomen for cosmetic reasons.