]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Fix typos in mst_kernel
authorAdham Masarwah <adham@mellanox.com>
Mon, 26 Feb 2018 08:16:07 +0000 (10:16 +0200)
committerBrian Maly <brian.maly@oracle.com>
Tue, 22 Jan 2019 19:29:26 +0000 (14:29 -0500)
Signed-off-by: Adham Masarwah <adham@mellanox.com>
Orabug: 28878697

(cherry picked from commit 5fd539b720c95b557f55aa6465fc220415d3dca4)
cherry-pick-repo=github.com/Mellanox/mstflint.git

Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
Files are relocated from 'kernel' directory to
'drivers/net/ethernet/mellanox/mstflint_access'

Signed-off-by: Qing Huang <qing.huang@oracle.com>
Reviewed-by: Aron Silverton <aron.silverton@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/mellanox/mstflint_access/mst_main.c

index a92eb48de5d558550e8d00d83ac2eb435608530a..b391b3ae9f92dc306ce897c44f9d511ae45a577a 100644 (file)
@@ -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;
                }