Followup: Bug 842492 - add 'gsm clear' console command

Removing redundant operation & making the function alignment consistent with the coding style

@vicamo, would you please help review it again? Thanks :)