Commit af36b685 authored by Junhao He's avatar Junhao He Committed by Greg Kroah-Hartman
Browse files

coresight: etm4x: core: Remove redundant check of attr

parent e12f6b55
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -568,11 +568,6 @@ static int etm4_parse_event_config(struct etmv4_drvdata *drvdata,
	struct etmv4_config *config = &drvdata->config;
	struct perf_event_attr *attr = &event->attr;

	if (!attr) {
		ret = -EINVAL;
		goto out;
	}

	/* Clear configuration from previous run */
	memset(config, 0, sizeof(struct etmv4_config));