Revert "net/bluetooth fix: l2cap_core.c warning: 'err' may be used uninitialized in this function"

This reverts commit b5c67449fb0510f5463e8da2ac1480d0d22aa5a3.