Message ID | 20231223072245.81630-1-kdipendra88@gmail.com |
---|---|
State | Accepted |
Commit | 914ec2149f896f86c39d0fd21dae58207ecf37fb |
Headers | show |
Series | staging: media/atomisp/pci/runtime/rmgr/src: Fix spelling mistakes in rmgr_vbuf.c | expand |
Hi, On 12/23/23 08:22, Dipendra Khadka wrote: > codespell reported following spelling mistake > in rmgr_vbuf.cas below: > > ''' > ./runtime/rmgr/src/rmgr_vbuf.c:201: succes ==> success > ./runtime/rmgr/src/rmgr_vbuf.c:211: succes ==> success > ./runtime/rmgr/src/rmgr_vbuf.c:215: succes ==> success > ''' > This patch fixes these spelling mistakes. > It is good to use variable name that gives > proper meaning and spelling error free. > > Signed-off-by: Dipendra Khadka <kdipendra88@gmail.com> Thank you for your patch. I have merged this in my media-atomisp branch: https://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git/log/?h=media-atomisp And this patch will be included in my next pull-request to Mauro (to media subsystem maintainer) Regards, Hans > --- > .../staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c > index 2e07dab8bf51..1f24db77fe38 100644 > --- a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c > +++ b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c > @@ -198,7 +198,7 @@ void rmgr_push_handle(struct ia_css_rmgr_vbuf_pool *pool, > struct ia_css_rmgr_vbuf_handle **handle) > { > u32 i; > - bool succes = false; > + bool success = false; > > assert(pool); > assert(pool->recycle); > @@ -208,11 +208,11 @@ void rmgr_push_handle(struct ia_css_rmgr_vbuf_pool *pool, > if (!pool->handles[i]) { > ia_css_rmgr_refcount_retain_vbuf(handle); > pool->handles[i] = *handle; > - succes = true; > + success = true; > break; > } > } > - assert(succes); > + assert(success); > } > > /*
diff --git a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c index 2e07dab8bf51..1f24db77fe38 100644 --- a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c +++ b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c @@ -198,7 +198,7 @@ void rmgr_push_handle(struct ia_css_rmgr_vbuf_pool *pool, struct ia_css_rmgr_vbuf_handle **handle) { u32 i; - bool succes = false; + bool success = false; assert(pool); assert(pool->recycle); @@ -208,11 +208,11 @@ void rmgr_push_handle(struct ia_css_rmgr_vbuf_pool *pool, if (!pool->handles[i]) { ia_css_rmgr_refcount_retain_vbuf(handle); pool->handles[i] = *handle; - succes = true; + success = true; break; } } - assert(succes); + assert(success); } /*
codespell reported following spelling mistake in rmgr_vbuf.cas below: ''' ./runtime/rmgr/src/rmgr_vbuf.c:201: succes ==> success ./runtime/rmgr/src/rmgr_vbuf.c:211: succes ==> success ./runtime/rmgr/src/rmgr_vbuf.c:215: succes ==> success ''' This patch fixes these spelling mistakes. It is good to use variable name that gives proper meaning and spelling error free. Signed-off-by: Dipendra Khadka <kdipendra88@gmail.com> --- .../staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)