Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a234792d authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

greybus: bundle: use dev_err for bundle-creation errors



Use dev_err to report duplicate bundle ids when creating a bundle.

Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1db1b243
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -108,7 +108,7 @@ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id,
	 * the interface bundle list locked here.
	 * the interface bundle list locked here.
	 */
	 */
	if (gb_bundle_find(intf, bundle_id)) {
	if (gb_bundle_find(intf, bundle_id)) {
		pr_err("duplicate bundle id %u\n", bundle_id);
		dev_err(&intf->dev, "duplicate bundle id %u\n", bundle_id);
		return NULL;
		return NULL;
	}
	}