On Tue, Apr 02, 2019 at 07:37:53PM +0000, Alexander Motin wrote:
> New Revision: 345815
> URL: https://svnweb.freebsd.org/changeset/base/345815
> 
> Log:
>   Make cam_error_print() decode NVMe commands.
> 
> Modified: head/sys/cam/nvme/nvme_xpt.c
> ...
> @@ -769,11 +769,13 @@ nvme_proto_debug_out(union ccb *ccb)
>  {
>       char cdb_str[(sizeof(struct nvme_command) * 3) + 1];
>  
> -     if (ccb->ccb_h.func_code != XPT_NVME_IO)
> +     if (ccb->ccb_h.func_code != XPT_NVME_IO ||
> +         ccb->ccb_h.func_code != XPT_NVME_ADMIN)
>               return;

PVS Studio complains that "Expression is always true. Probably the '&&'
operator should be used here".  Can you take a look?

./danfe
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to