That white substance is called albumin and it is a protein that solidifies as salmon cooks.  It may not look pretty but it is harmless and you can eat it.  If you see a lot of this on your salmon then you most likely over cooked it.