[igt-dev] [PATCH v3 30/57] lib: Fix 'otherwise' typos

Francois Dugast francois.dugast at intel.com
Thu Nov 9 15:53:43 UTC 2023


From: Rodrigo Vivi <rodrigo.vivi at intel.com>

Found while trying to replace s/hwe/eci.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 lib/drmtest.c         | 2 +-
 lib/intel_allocator.c | 2 +-
 lib/xe/xe_spin.c      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index e1da66c87..be44d65b9 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -407,7 +407,7 @@ static int __open_driver_exact(const char *name, unsigned int chipset)
  *
  * Returns:
  * True if card according to the added filter was found,
- * false othwerwise.
+ * false otherwise.
  */
 static bool __get_card_for_nth_filter(int idx, struct igt_device_card *card)
 {
diff --git a/lib/intel_allocator.c b/lib/intel_allocator.c
index f0a9b7fb5..3d42388b8 100644
--- a/lib/intel_allocator.c
+++ b/lib/intel_allocator.c
@@ -1406,7 +1406,7 @@ bool intel_allocator_unreserve(uint64_t allocator_handle, uint32_t handle,
  * Note. @size and @offset have to match those used in reservation,
  * i.e. check with the same offset but even smaller size will fail.
  *
- * Returns: true if space is reserved, othwerise false.
+ * Returns: true if space is reserved, otherwise false.
  */
 bool intel_allocator_is_reserved(uint64_t allocator_handle,
 				 uint64_t size, uint64_t offset)
diff --git a/lib/xe/xe_spin.c b/lib/xe/xe_spin.c
index 91bc6664d..f7fcb5a48 100644
--- a/lib/xe/xe_spin.c
+++ b/lib/xe/xe_spin.c
@@ -150,7 +150,7 @@ void xe_spin_init(struct xe_spin *spin, struct xe_spin_opts *opts)
  * xe_spin_started:
  * @spin: pointer to spinner mapped bo
  *
- * Returns: true if spinner is running, othwerwise false.
+ * Returns: true if spinner is running, otherwise false.
  */
 bool xe_spin_started(struct xe_spin *spin)
 {
-- 
2.34.1



More information about the igt-dev mailing list