From: Adham Masarwah Date: Mon, 26 Feb 2018 08:16:07 +0000 (+0200) Subject: Fix typos in mst_kernel X-Git-Tag: v4.1.12-124.31.3~318 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6a0624ff964e68ebf706d37eae523f6a3707ae43;p=users%2Fjedix%2Flinux-maple.git Fix typos in mst_kernel Signed-off-by: Adham Masarwah Orabug: 28878697 (cherry picked from commit 5fd539b720c95b557f55aa6465fc220415d3dca4) cherry-pick-repo=github.com/Mellanox/mstflint.git Signed-off-by: Brian Maly Conflicts: Files are relocated from 'kernel' directory to 'drivers/net/ethernet/mellanox/mstflint_access' Signed-off-by: Qing Huang Reviewed-by: Aron Silverton Signed-off-by: Brian Maly --- diff --git a/drivers/net/ethernet/mellanox/mstflint_access/mst_main.c b/drivers/net/ethernet/mellanox/mstflint_access/mst_main.c index a92eb48de5d55..b391b3ae9f92d 100644 --- a/drivers/net/ethernet/mellanox/mstflint_access/mst_main.c +++ b/drivers/net/ethernet/mellanox/mstflint_access/mst_main.c @@ -321,7 +321,7 @@ static int mst_ioctl(struct inode *inode, struct file *file, case PCIMEM: if ((readst.offset + sizeof(u32)) > MST_MEMORY_SIZE) { - mst_err("accesing invalid address\n"); + mst_err("accessing invalid address\n"); res = -EINVAL; goto fin; } @@ -418,13 +418,13 @@ static int mst_ioctl(struct inode *inode, struct file *file, } if (readst.size % sizeof(u32)) { - mst_err("invalid size. size should be in bytes and devide sizeof(u32)\n"); + mst_err("invalid size. size should be in bytes and divide sizeof(u32)\n"); res = -EINVAL; goto fin; } if ((readst.offset + readst.size) > MST_MEMORY_SIZE) { - mst_err("accesing invalid address\n"); + mst_err("accessing invalid address\n"); res = -EINVAL; goto fin; } @@ -476,13 +476,13 @@ static int mst_ioctl(struct inode *inode, struct file *file, } if (writest.size % sizeof(u32)) { - mst_err("invalid size. size should be in bytes and devide sizeof(u32)\n"); + mst_err("invalid size. size should be in bytes and divide sizeof(u32)\n"); res = -EINVAL; goto fin; } if ((writest.offset + writest.size) > MST_MEMORY_SIZE) { - mst_err("accesing invalid address\n"); + mst_err("accessing invalid address\n"); res = -EINVAL; goto fin; }