]> git.openfabrics.org - ~emulex/infiniband.git/commit
iommu/dmar: Use pr_format() instead of PREFIX to tidy up pr_*() calls
authorDonald Dutile <ddutile@redhat.com>
Fri, 8 Jun 2012 21:13:11 +0000 (17:13 -0400)
committerIngo Molnar <mingo@kernel.org>
Mon, 11 Jun 2012 08:27:44 +0000 (10:27 +0200)
commite9071b0be5e7ce4903b7f7c370769d485774d3e3
tree06b1a1adfe2f807d28e9b3ab6cf2b56f6744bc4c
parent6f5cf52114dd87f9ed091678f7dfc8ff21bbe2b3
iommu/dmar: Use pr_format() instead of PREFIX to tidy up pr_*() calls

Joe Perches recommended getting rid of the redundant
formatting of adding "PREFIX" to all the uses of pr_*() calls.

The recommendation helps to reduce source and improve
readibility.

While cleaning up the PREFIX's, I saw that one of
the pr_warn() was redundant in dmar_parse_one_dev_scope(),
since the same message was printed after breaking out of the
while loop for the same condition, !pdev.
So, to avoid a duplicate message, I removed the one in the while
loop.

Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Donald Dutile <ddutile@redhat.com>
Cc: iommu@lists.linux-foundation.org
Cc: chrisw@redhat.com
Cc: suresh.b.siddha@intel.com
Cc: dwmw2@infradead.org
Link: http://lkml.kernel.org/r/1339189991-13129-1-git-send-email-ddutile@redhat.com
[ Small whitespace fixes. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/iommu/dmar.c