]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: remove trailing white space on input str for wq name
authorDave Jiang <dave.jiang@intel.com>
Mon, 21 Mar 2022 20:40:51 +0000 (13:40 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Apr 2022 13:51:34 +0000 (19:21 +0530)
commit8b1a83f60436b3c9abd1c262c0bb4f5e90374b97
tree36b75b51037ac5b71a9e53ebe9d6ad20a118e90b
parentf3c36a1025ffbd108e27edd92401387a74d684d5
dmaengine: idxd: remove trailing white space on input str for wq name

Add string processing with strim() in order to remove trailing white spaces
that may be input by user for the wq->name.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/164789525123.2799661.13795829125221129132.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c