Motorcyclists are entitled to use the full width of a traffic lane. A driver should pass a motorcycle the same way a driver would pass another vehicle.

Although there may be enough room in the traffic lane for an automobile and a motorcyclist, a vehicle driver should remember that the motorcyclist needs the room to maneuver safely and is entitled to the entire lane. A vehicle driver should not share the lane with motorcyclists.
DMV Writen Test