That small black lump on your charger cable is a ferrite bead, a vital component that filters out electrical noise. This ...
Simple, two-terminal SMT (surface-mount-technology)-ferrite-bead components perform crucial functions in many systems. For example, one might suppress electromagnetic emissions from a power wire.