Dimitry Andric 13ae20a8a1 Fix new clang 10.0.0 warnings about converting the result of shift
operations to a boolean in tpm(4):

  sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mean '(1 << (0)) != 0'? [-Werror,-Wint-in-bool-context]
	  WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD);
					^
  sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD'
  #define TPM_CRB_CTRL_CANCEL_CMD         BIT(0)
					  ^
  sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT'
  #define BIT(x) (1 << (x))
		    ^

In this case, the intent was to clear the zeroth bit, and leave the rest
unaffected.  Therefore, the ~ operator should be used instead.

Noticed by:	cem
MFC after:	3 days
2020-02-01 17:02:26 +00:00
..
2019-10-21 17:59:53 +00:00
2019-10-21 18:00:17 +00:00
2019-10-21 18:06:06 +00:00
2019-10-21 18:06:09 +00:00
2019-05-24 06:07:33 +00:00
2019-02-25 21:59:01 +00:00
2019-12-17 00:10:19 +00:00
2019-10-21 18:06:19 +00:00
2019-10-21 18:06:23 +00:00
2019-10-21 18:06:31 +00:00
2019-12-04 16:56:11 +00:00
2019-10-21 18:11:02 +00:00
2019-10-21 18:11:08 +00:00
2019-10-21 18:11:15 +00:00
2019-10-21 18:11:19 +00:00
2019-10-21 18:11:28 +00:00
2019-12-04 16:56:11 +00:00
2019-10-21 18:11:32 +00:00
2019-10-07 22:40:05 +00:00
2019-10-21 18:06:53 +00:00
2019-10-21 18:06:57 +00:00
2019-12-27 04:11:14 +00:00
2019-10-21 18:07:02 +00:00
2019-11-18 20:53:57 +00:00
2019-10-21 18:11:43 +00:00
2019-12-26 17:25:51 +00:00
2019-10-21 18:07:07 +00:00
2019-10-21 18:07:11 +00:00
2019-10-21 18:07:15 +00:00
2020-01-31 10:41:47 +00:00
2020-01-30 12:35:13 +00:00
2020-01-19 22:52:36 +00:00
2020-01-27 00:14:51 +00:00
2019-10-14 20:18:36 +00:00
2019-10-21 18:11:58 +00:00
2019-10-21 18:07:24 +00:00
2019-10-21 18:07:28 +00:00
2020-01-08 18:26:23 +00:00
2019-12-15 21:11:15 +00:00
2019-12-04 16:56:11 +00:00
2019-03-11 14:26:45 +00:00
2019-12-04 16:56:11 +00:00
2019-10-21 18:12:12 +00:00
2020-01-29 04:42:46 +00:00
2019-10-21 18:07:35 +00:00
2019-06-08 16:26:56 +00:00
2019-10-21 18:07:40 +00:00
2019-10-21 18:07:44 +00:00
2019-10-21 18:07:49 +00:00
2019-10-21 18:07:53 +00:00
2019-10-21 18:07:56 +00:00
2019-02-04 21:28:25 +00:00
2019-10-21 18:08:03 +00:00
2019-10-21 18:12:36 +00:00
2019-10-21 18:08:12 +00:00
2019-10-21 18:08:16 +00:00
2019-10-21 18:08:20 +00:00
2019-08-30 00:40:08 +00:00
2019-10-21 18:08:25 +00:00
2019-02-26 19:55:03 +00:00