Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: btbcm: remove done label in btbcm_patchram

There is no point in having the label since all it does is return the
value in the 'err' variable. Instead make every goto return directly
and remove the label.

Signed-off-by: Dongyang Jin <jindongyang@kylinos.cn>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Dongyang Jin and committed by
Luiz Augusto von Dentz
a80b51f0 edef6576

+4 -6
+4 -6
drivers/bluetooth/btbcm.c
··· 223 223 err = PTR_ERR(skb); 224 224 bt_dev_err(hdev, "BCM: Download Minidrv command failed (%d)", 225 225 err); 226 - goto done; 226 + return err; 227 227 } 228 228 kfree_skb(skb); 229 229 ··· 242 242 243 243 if (fw_size < cmd->plen) { 244 244 bt_dev_err(hdev, "BCM: Patch is corrupted"); 245 - err = -EINVAL; 246 - goto done; 245 + return -EINVAL; 247 246 } 248 247 249 248 cmd_param = fw_ptr; ··· 257 258 err = PTR_ERR(skb); 258 259 bt_dev_err(hdev, "BCM: Patch command %04x failed (%d)", 259 260 opcode, err); 260 - goto done; 261 + return err; 261 262 } 262 263 kfree_skb(skb); 263 264 } ··· 265 266 /* 250 msec delay after Launch Ram completes */ 266 267 msleep(250); 267 268 268 - done: 269 - return err; 269 + return 0; 270 270 } 271 271 EXPORT_SYMBOL(btbcm_patchram); 272 272