Neutral and ground should only be bonded at the service equipment. This could be at the service drop, the meter, or the service disconnect (250.24(A)(1)).
Looks like the neutral is bonded in your main panel, via the bonding screw.
The second panel is then fed using four wires, to keep ground and neutral separate.