Update plot.c

Removed unneeded error check