We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 283f87c commit 885f123Copy full SHA for 885f123
drivers/hwtracing/intel_th/msu.c
@@ -718,9 +718,6 @@ static int msc_win_set_lockout(struct msc_window *win,
718
719
if (old != expect) {
720
ret = -EINVAL;
721
- dev_warn_ratelimited(msc_dev(win->msc),
722
- "expected lockout state %d, got %d\n",
723
- expect, old);
724
goto unlock;
725
}
726
@@ -741,6 +738,10 @@ static int msc_win_set_lockout(struct msc_window *win,
741
738
/* from intel_th_msc_window_unlock(), don't warn if not locked */
742
739
if (expect == WIN_LOCKED && old == new)
743
740
return 0;
+
+ dev_warn_ratelimited(msc_dev(win->msc),
+ "expected lockout state %d, got %d\n",
744
+ expect, old);
745
746
747
return ret;
0 commit comments